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-Thread: 103376,d0475d4d02ffd8d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!elk.ncren.net!news2.wam.umd.edu!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!53ab2750!not-for-mail From: "Frank J. Lhota" User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: To collection (GNAT bug) References: <1fo8mdcya4lc1.1xzuim6fz5a6a.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 02 Oct 2006 09:02:57 -0400 NNTP-Posting-Host: 155.34.132.73 X-Complaints-To: news@ll.mit.edu X-Trace: llslave.llan.ll.mit.edu 1159794332 155.34.132.73 (Mon, 02 Oct 2006 09:05:32 EDT) NNTP-Posting-Date: Mon, 02 Oct 2006 09:05:32 EDT Xref: g2news2.google.com comp.lang.ada:6839 Date: 2006-10-02T09:02:57-04:00 List-Id: Jeffrey R. Carter wrote: > Frank J. Lhota wrote: > > Since you can instantiate System.Address_To_Access_Conversions with type > String, I don't see how its access type can be any different than one > you declare yourself. > It can have pragmas and representation clauses needed to make sure that the To_Pointer and To_Address functions are meaningful. For example, the GNAT version of this package includes the representation clause for Object_Pointer'Size use Standard'Address_Size; which precludes implementing Object_Pointer as a "fat" pointer.