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,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-17 10:14:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!news-west.rr.com!lsnws01.we.mediaone.net!typhoon.san.rr.com.POSTED!not-for-mail Message-ID: <3B7D50DA.ACED8299@san.rr.com> From: Darren New Organization: Boxes! X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada and pointers References: <9ldto7$9pg$1@nh.pace.co.uk> <9lei8f$gmu$1@houston.jhuapl.edu> <9lgibn$ak1$1@nh.pace.co.uk> <3B7BEA38.7FD8E9F0@san.rr.com> <3B7BF59F.BF0EE5BE@worldnet.att.net> <3B7BFB59.5BBAF07F@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 17 Aug 2001 17:14:02 GMT NNTP-Posting-Host: 24.165.21.34 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 998068442 24.165.21.34 (Fri, 17 Aug 2001 10:14:02 PDT) NNTP-Posting-Date: Fri, 17 Aug 2001 10:14:02 PDT Xref: archiver1.google.com comp.lang.ada:12059 Date: 2001-08-17T17:14:02+00:00 List-Id: Ted Dennison wrote: > > In article <3B7BFB59.5BBAF07F@san.rr.com>, Darren New says... > > > >The other possibility is to encapsulate all the linked-list stuff > >nicely, giving nice semantic-oriented interfaces, which is more of a > >pain in C than it's worth in my case. > > If you want to do that, you should probably look at the Ada booch components > (although for a lot of people, its easier to write a limited array-based queue > themselves than it is to find and figure out how to instantiate the proper booch > component). Actually, I meant it would be easy to encapsulate the linked-list stuff in a semantically meaningful set of packages in Ada, whereas in C with its poor namespace control and lack of generics and etc, it's just not worth the effort. Certainly, a routine to find the first item on the list whose X field is less than the value Y is a lot easier to encapsulate in a general way in Ada than C. -- Darren New / Senior MTS & Free Radical / Invisible Worlds Inc. San Diego, CA, USA (PST). Cryptokeys on demand. dnew@san.rr.com When was sliced bread invented?