TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: "W. Wesley Groleau x4923" <[log in to unmask]>
Date: Thu, 1 Oct 1998 15:20:39 -0500
Reply-To: "W. Wesley Groleau x4923" <[log in to unmask]>
Parts/Attachments: text/plain (13 lines)
> In this particular version of aliasing, using pointers, you can
> you can have a name that outlives the storage allocation for the
> variable.  This is a problem.  It's a common cause, in C, of
> hard-to-trace weird behavior and "segmentation fault - core dumped"
> failures.

For Java, this is theoretically not quite true.  There is no explicit
deallocation.  If it works like it's supposed to, the item remains
allocated until the garbage collector determines that there are no
remaining references.

(But I still like Ada better.)