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,FREEMAIL_FROM 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!news.tele.dk!not-for-mail Sender: malo@0x53586c67.boanxx18.adsl-dhcp.tele.dk 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> <1108456053.837461.20340@f14g2000cwb.googlegroups.com> From: Mark Lorenzen Date: 15 Feb 2005 11:07:53 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 83.88.108.103 X-Trace: 1108462073 dtext02.news.tele.dk 168 83.88.108.103:64182 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:8328 Date: 2005-02-15T11:07:53+01:00 List-Id: Jacob Sparre Andersen writes: > Mark Lorenzen wrote: > > Jacob Sparre Andersen writes: > > > > Aren't the compilers (theoretically) allowed to delay the > > > instantiation of the packgage until run-time? > > > > 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. > > Would a Preelaborate or Pure pragma in the generic package make any > difference here? (although I don't think Preelaborate would be legal > in PragmARC.Reflection) > > What do the compilers actually do? My guess is that they all > instantiate the package(s) at compile-time, but I don't know (and I > only have access to GNAT). > > Jacob > -- > "Three can keep a secret if two of them are dead." I think that GNAT instantiates the packages at compile-time. - Mark