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!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: This can't be done in Ada...or? Date: Tue, 15 Feb 2005 10:15:21 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1108139611.709714.36170@o13g2000cwo.googlegroups.com> <2IcPd.6268$mG6.1474@newsread1.news.pas.earthlink.net> <1108372232.436036.318690@g14g2000cwa.googlegroups.com> <1108456053.837461.20340@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: host81-154-188-69.range81-154.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: hercules.btinternet.com 1108462521 10728 81.154.188.69 (15 Feb 2005 10:15:21 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 15 Feb 2005 10:15:21 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) Xref: g2news1.google.com comp.lang.ada:8329 Date: 2005-02-15T10:15:21+00:00 List-Id: Mark Lorenzen wrote: > Hm yes, I think they are - as the semantics is written as an "as-if" > semantics. But if the generic package body does not need to be > elaborated, there will probably not be any overhead. That 'probably' looks a little worrying to me! :-) There's only one way to do this and that's to actually try it in your system. Another change you could make that might make a difference is to change: Name : constant String := Expanded_Name (T'Tag); to: Name : constant String := T'External_Tag; That way you can make PragmARC.Reflection "pragma Preelaborate" and not have any dependency on "Ada.Tags". This change works with at least GNAT 3.15p and ObjectAda 7.2.2. Cheers -- Martin