comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <groleau+news@freeshell.org>
Subject: Ada has garbage collection
Date: Mon, 23 Aug 2004 22:49:22 -0500
Date: 2004-08-23T22:49:22-05:00	[thread overview]
Message-ID: <KpWdna_dGbEvJ7fcRVn-qw@gbronline.com> (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



             reply	other threads:[~2004-08-24  3:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24  3:49 Wes Groleau [this message]
2004-08-24  8:05 ` Ada has garbage collection Florian Weimer
2004-08-24 18:35   ` Randy Brukardt
2004-08-24 18:41 ` Jean-Marc Bourguet
replies disabled

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