TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

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

Print Reply
"W. Wesley Groleau x4923" <[log in to unmask]>
Thu, 1 Oct 1998 15:20:39 -0500
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.)