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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6248cc9ba00e302f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-13 12:56:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Generics and null procedures Date: 13 Apr 2003 14:56:56 -0500 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1050263809 20626 192.135.80.34 (13 Apr 2003 19:56:49 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sun, 13 Apr 2003 19:56:49 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:36122 Date: 2003-04-13T14:56:56-05:00 List-Id: In article , "kat-Zygfryd" <6667@wp.pl> writes: > generic > (...) > with procedure Proc; > package Pack is.... > --- > procedure NullProc is > begin null; end NullProc; > --- > package NewPack is new Pack(NullProc); > --- > > My question is: is the compiler smart enough > to ignore all calls to NullProc in Pack, or is > it going to call this obsolete procedure? Certainly that depends on what compiler, which you have not indicated.