From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,92748798eb3c95c4,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 23 Aug 2004 22:49:05 -0500 Date: Mon, 23 Aug 2004 22:49:22 -0500 From: Wes Groleau Reply-To: groleau+news@freeshell.org Organization: Ain't no organization here! User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Ada has garbage collection Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 69.9.86.59 X-Trace: sv3-PDNcn42r4fgXrMFqyEzwReZ+uhe08IMPfayQwmguV9ulfJnZn8tOE/DDXKzV2Pn2xEiXY5NGRirwzsI!BH+cvedlt5uM5dp8/b//HJV7tW8aEdiTmCPjAi71MyiAfGMOaT44fS1X5l/72j++y0oKap/8qYeT X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.13 Xref: g2news1.google.com comp.lang.ada:2949 Date: 2004-08-23T22:49:22-05:00 List-Id: 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