comp.lang.ada
 help / color / mirror / Atom feed
* Ada has garbage collection
@ 2004-08-24  3:49 Wes Groleau
  2004-08-24  8:05 ` Florian Weimer
  2004-08-24 18:41 ` Jean-Marc Bourguet
  0 siblings, 2 replies; 4+ messages in thread
From: Wes Groleau @ 2004-08-24  3:49 UTC (permalink / raw)


OK, we could argue semantics, but every language with
parameters/data on the call stack has garbage collection
for all those objects.

And Ada makes it far less necessary than some languages
to avoid pointers and use locals instead.

Many vendors use the heap for large things, but AFAIK,
they keep it transparent and do the "garbage collection"
just as well as if the objects stayed on the stack.

Of course, some problems/data structures almost demand
pointers, but with sensible encapsulation and package
designed, controlled types provide all the GC those things need.

How does that differ from C++ destructors?

Java couldn't afford to be without universal GC, because
it makes almost everything on the heap, and allows no
definition of destructors.

-- 
Wes Groleau

Even if you do learn to speak correct English,
whom are you going to speak it to?
                     -- Clarence Darrow



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-24 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-24  3:49 Ada has garbage collection Wes Groleau
2004-08-24  8:05 ` Florian Weimer
2004-08-24 18:35   ` Randy Brukardt
2004-08-24 18:41 ` Jean-Marc Bourguet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox