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: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Why forbid local generic instantiations? Date: Fri, 25 Jan 2019 15:23:55 -0600 Organization: JSA Research & Innovation Message-ID: References: <100ce3ee-71f7-46c7-a24c-dc9c0d280c4f@googlegroups.com> Injection-Date: Fri, 25 Jan 2019 21:23:56 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="23509"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:55372 Date: 2019-01-25T15:23:55-06:00 List-Id: "Jeffrey R. Carter" wrote in message news:q2fdui$9vn$1@dont-email.me... ... > Perhaps such people don't know that instantiation takes place during > compilation and has no run-time impact. I agree with most of what you said, but this statement is false, since the instance is elaborated at the point of the instantation. Depending on the generic, that could be a substantial amount of execution time. (Note that is even more true for a code-shared implementation like Janus/Ada, since the elaboration of the instance creates the instantiation descriptor.) Randy.