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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1264e586250f470 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-17 08:51:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: Elaboration of nested generic package. Date: Thu, 17 Jul 2003 08:54:31 -0700 Organization: AdaWorks Software Engineering Message-ID: <3F16C6B7.8B1C19B7@adaworks.com> References: <5437fafb.0307071905.5d3bbc4e@posting.google.com> <1ec946d1.0307080946.7e61cda9@posting.google.com> <5437fafb.0307091710.5cb4b0eb@posting.google.com> <3F0CC2D1.10904@attbi.com> <1ec946d1.0307100612.20a3d000@posting.google.com> <1ec946d1.0307141035.3f1e4b80@posting.google.com> <1ec946d1.0307160724.1ff7c5b5@posting.google.com> Reply-To: richard@adaworks.com NNTP-Posting-Host: 3f.bb.a1.5c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 17 Jul 2003 15:51:12 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:40407 Date: 2003-07-17T15:51:12+00:00 List-Id: Randy Brukardt wrote: > > ... the generic body is always elaborated at the point of the instantiation > ... which turned out to be a clever trick, under Ada 83, for ensuring that a package would be elaborated exactly when you needed it to be. We would create generic packages with no parameters, with them, and then instantiate them in any declaration part of a program, even in a declare block. Of course, this does raise an efficiency issue, but it also solve an elaborartion issue. Richard Riehle