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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 01:12:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X (Ada.Sockets) References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED4A94C.2020501@noplace.com> <3ed4c9a2@news.wineasy.se> <3ED4EB4E.6050108@cogeco.ca> <7vllwk6frm.fsf@vlinux.voxelvision.no> <3EDB5853.9020105@attbi.com> From: Ole-Hjalmar Kristensen Message-ID: <7vbrxf60nj.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Jun 2003 08:11:28 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1054627888 193.216.12.150 (Tue, 03 Jun 2003 10:11:28 MET DST) NNTP-Posting-Date: Tue, 03 Jun 2003 10:11:28 MET DST Organization: Tele2 Norway AS Public Access Xref: archiver1.google.com comp.lang.ada:38441 Date: 2003-06-03T08:11:28+00:00 List-Id: "Robert I. Eachus" writes: > Ole-Hjalmar Kristensen wrote: > > > Sounds logical, but look what's happened to garbage collection. No one > > implements it, ergo the user cannot count on it even though it's in the > > standard. > > First, I think this should be fixed in Ada0Y. Not necessarily full > garbage collection, but... > > Ada95 has a requirement that Unbounded_Strings not leak storage. This > can be done by reference counting or whatever, but it has to be > there. I have a nice little package that uses Unchecked_Conversion to > put arbitrary objects in Strings. Obiously pointers "hidden" this way > will break the abstraction. But I find it is a very useful language > extension. > > Second, and this is again something that puts no burden on compiler > vendors, there should be a standard generic garbage collection package > which uses a named storage pool. Write it, propose it, and Ada0Y will > have a standard Ada.Garbage_Collection package. > > Yes, I like the idea of having a separate pool with garbage coolection. Modula-3 has exactly the same approach, and it works just fine. -- Ole-Hj. Kristensen ****************************************************************************** * You cannot consistently believe this sentence. ******************************************************************************