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,704a2a0ee079967 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-26 22:31:07 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed1.news.digex.net!intermedia!cyclone2.usenetserver.com!usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B89DB14.6D368DC7@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Using renaming declarations to make private subprograms visible References: <87itfcnuyj.fsf@chiark.greenend.org.uk> <3B87EDC9.A6D626E8@acm.org> <87heuv6q90.fsf@chiark.greenend.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 27 Aug 2001 05:31:33 GMT NNTP-Posting-Host: 158.252.129.1 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 998890293 158.252.129.1 (Sun, 26 Aug 2001 22:31:33 PDT) NNTP-Posting-Date: Sun, 26 Aug 2001 22:31:33 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 26 Aug 2001 22:28:07 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:12451 Date: 2001-08-27T05:31:33+00:00 List-Id: Matthew Woodcraft wrote: > > Jeffrey Carter writes: > > > This compiles with GNAT 3.13p: > > > > function Convert_To_String (Source : Token_Type) return String > > renames To_String; > > > > function To_String (Source : Token_Type) return String > > renames Convert_To_String; I was rather surprised that it compiles. Someday I'll have time to check the ARM and see what it says on the matter. In the meantime, you probably want to make the full definition of Token_Type a record with a component of Unbounded_String, and provide a body for your package. -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail