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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,758f1e01b86b6274 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Export instances of procedures Date: 2000/04/19 Message-ID: <8djpm3$qef$2@wanadoo.fr>#1/1 X-Deja-AN: 613042212 References: <38FCBA00.992AA7A2@maths.unine.ch> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 956131843 27087 193.250.164.173 (19 Apr 2000 08:10:43 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 19 Apr 2000 08:10:43 GMT Newsgroups: comp.lang.ada Date: 2000-04-19T08:10:43+00:00 List-Id: Gautier a �crit dans le message : 38FCBA00.992AA7A2@maths.unine.ch... > Hi. GNAT 3.10-3.12 doesn't seem to want to export directly, > i.e. without "renames", instances of procedures out of a package. > Is there an Ada rule behind it ? No explanation found in the Manual. > > 2) But, if I put: "procedure Read_8bit_AutoInit is new Program_DMA( 16#58# );" > I get: "Read_8bit_Autoinit" conflicts with declaration at line 48 > and of course: missing body for "Read_8bit_AutoInit" declared at line 48 > > Strange, isn't it ? An instantiation is both a spec AND a body. Just remove the explicit spec, and it will work. -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog