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=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,72659d66ef00787b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-27 05:20:35 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: Actual subprogram and generic instantiation in same unit Date: Mon, 27 Oct 2003 14:20:30 +0100 Organization: Cuivre, Argent, Or Message-ID: References: <6a6390b8.0310270433.6b916549@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1067260814 53267 80.67.180.195 (27 Oct 2003 13:20:14 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 27 Oct 2003 13:20:14 +0000 (UTC) To: okellogg@freenet.de (Oliver Kellogg), comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.5.1 In-Reply-To: <6a6390b8.0310270433.6b916549@posting.google.com> Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:1725 Date: 2003-10-27T14:20:30+01:00 On Monday 27 October 2003 13:33, Oliver Kellogg wrote: > To my amazement the following compiles: > > -- file: inst.ads > with Generic_Package; -- takes a parameterless generic formal procedure P > > package Lump is > > procedure Manipulate; > > package Instantiation is new Generic_Package (P => Manipulate); > > end Lump; > > > Poor compiler has to instantiate a package using a procedure > whose body it has not yet seen... Why should that be a problem? After all, it has all the information it needs to generate calls to the procedure. Duncan.