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,b1ebfe7f8f5e385d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-02 12:38:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Generic formal access types Date: Fri, 2 May 2003 14:39:27 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3eb23fca$1@epflnews.epfl.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:36885 Date: 2003-05-02T14:39:27-05:00 List-Id: Robert A Duff wrote in message ... >When I invented the Address_To_Access_Conversions package (see chap 13), >I made the mistake of declaring the pointer type inside the generic, >because I thought the primary use would be peek/poke functionality, so >you would always say ".all" right away. And it makes the instantiation >simpler. But it turns out to be a pain. I always wondered whose fault that was. :-) Whenever use that package, I almost always declare the access type first, then realize that isn't right and have to change it. And, it often is the case that it has to be converted to another type. (But I've found that avoid System.Address altogether is a better solution. There really is no reason to use it in Ada 95 outside of address clauses.) Randy.