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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Generic instantiation before actual subprogram body Date: Thu, 04 Dec 2014 15:12:46 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Dec 2014 14:12:30 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="23dab0694e4174fdc880833ec67fa650"; logging-data="28677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Jfk0wMvTQUCowVgXAzMxW" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: Cancel-Lock: sha1:lmdlQy/16h4Qxjoio/cTyRh4mDY= Xref: number.nntp.giganews.com comp.lang.ada:191166 Date: 2014-12-04T15:12:46+01:00 List-Id: Le 04/12/2014 11:03, Natasha Kerensikova a écrit : > This is the body of the generic unit, while my question was about the > body of the actual subprograms use in the generic instantiation to match > for the formal subprogram parameters in the generic. OK, my mistake. I don't see any reason while the actual should be elaborated when you instantiate the generic. Of course, it has to be elaborated when you call it, and such a call can happen as part of the elaboration of the body of the generic, but you noticed that already. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr