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,400766bdbcd86f7c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: This can't be done in Ada...or? References: <1108139611.709714.36170@o13g2000cwo.googlegroups.com> <2IcPd.6268$mG6.1474@newsread1.news.pas.earthlink.net> <1108372232.436036.318690@g14g2000cwa.googlegroups.com> In-Reply-To: <1108372232.436036.318690@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 15 Feb 2005 00:40:20 GMT NNTP-Posting-Host: 63.186.33.45 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1108428020 63.186.33.45 (Mon, 14 Feb 2005 16:40:20 PST) NNTP-Posting-Date: Mon, 14 Feb 2005 16:40:20 PST Xref: g2news1.google.com comp.lang.ada:8318 Date: 2005-02-15T00:40:20+00:00 List-Id: Per Lindquist wrote: > Thanks, I've tried your package before. Works great but I miss a > Subprogram_Name auto-assignment so... (Ah those users, always wanting > more more more... ;) It would be helpful if there was some indication of what you are replying to. I'm going to assume this is a response to my response. I'm not sure what you mean by "Subprogram_Name auto-assignment". Could you explain further? Note that you can instantiate PragmARC.Reflection inside a subprogram: with Ada.Text_IO; with PragmARC.Reflection; package body P is package This is new PragmARC.Reflection; procedure Q is package That is new PragmARC.Reflection; begin -- Q Ada.Text_IO.Put_Line (Item => That.Unit_Name); -- "P.Q" end Q; begin -- P Ada.Text_IO.Put_Line (Item => This.Unit_Name); -- "P" end P; -- Jeff Carter "Sons of a silly person." Monty Python & the Holy Grail 02