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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aaec211ca305e5ee X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: allocators for classwide types? Date: 2000/01/07 Message-ID: <853r1c$lv$1@nnrp1.deja.com>#1/1 X-Deja-AN: 569222064 References: <38684DEE.6CB6F268@telepath.com> <3868E1B4.D5F6A23C@telepath.com> <3868FB86.4126D0E6@telepath.com> X-Http-Proxy: 1.0 x24.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Jan 07 04:45:34 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-01-07T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Ted Dennison writes: > > > function Get (Package_1 : in Package_1.Class; > > F2 : in Package_2.Class > > ) return Descriptor; > > This is illegal. The parameter Package_1 hides the package Package_1, > so you can't say "Package_1.Class" in the declaration of the parameter. > > If the error message was confusing, then maybe that's a bug, but > certainly the compiler should give *some* error message. GNAT would say here: j.ads:8:30: formal parameter "Package_1" cannot be used before end of specification which seems clear enough! Robert Dewar Ada Core Technologies Sent via Deja.com http://www.deja.com/ Before you buy.