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,9cbcb326ab4299b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 16 Feb 2011 11:51:38 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Package name as string References: <9IK6p.32469$2t5.26524@newsfe24.ams2> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4d5bac3a$0$7667$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Feb 2011 11:51:38 CET NNTP-Posting-Host: 7533fec5.newsspool1.arcor-online.net X-Trace: DXC=F2f7kQ5PYZXV0Pe9PRnbJ\ic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgR^ho\<72OWS_nc\616M64>ZLh>_cHTX3j][gReWB_RMgS X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:17296 Date: 2011-02-16T11:51:38+01:00 List-Id: On 16.02.11 09:52, Dmitry A. Kazakov wrote: > On Wed, 16 Feb 2011 08:06:45 +0100, Per Sandberg wrote: > A possible GNAT-independent implementation: > > with Ada.Tags; > > function Name return String is > type Dummy is tagged limited null record; > Result : String := Ada.Tags.Expanded_Name (Dummy'Tag); > begin > return Result (Result'First..Result'Last - 11); > end Name; > This is akin to what Pragmada.Reflection does. It uses instances of a generic, an abstract type, and does then not rely on -11.