From: Robert Dewar <dewar@gnat.com>
Subject: Re: allocators for classwide types?
Date: 2000/01/07
Date: 2000-01-07T00:00:00+00:00 [thread overview]
Message-ID: <853r1c$lv$1@nnrp1.deja.com> (raw)
In-Reply-To: wccln63xpf5.fsf@world.std.com
In article <wccln63xpf5.fsf@world.std.com>,
Robert A Duff <bobduff@world.std.com> wrote:
> Ted Dennison <dennison@telepath.com> 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.
prev parent reply other threads:[~2000-01-07 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-28 0:00 allocators for classwide types? Ted Dennison
1999-12-28 0:00 ` Robert A Duff
1999-12-28 0:00 ` Ted Dennison
1999-12-28 0:00 ` Ted Dennison
2000-01-06 0:00 ` Robert A Duff
2000-01-07 0:00 ` Robert Dewar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox