From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Help! type extensions - Gnat for Win95
Date: 1996/04/14
Date: 1996-04-14T00:00:00+00:00 [thread overview]
Message-ID: <DpvJ95.IJ6@world.std.com> (raw)
In-Reply-To: 317169a3.48223533@news.lainet.com
In article <317169a3.48223533@news.lainet.com>,
Lance <lance@lainet.com> wrote:
>All of the above code compiles fine.
It shouldn't. You need to make Stack abstract, since it has an abstract
primitive operation.
>... However, I try to use the
>package in test program the compiler tells me "type extension at
>deeper accessibility level than parent." at the line in
>Containers.Stacks.Bounded_STacks that defines the type. (marked with *
>above)
Don't extend these types in procedures or functions. If the thing is
generic, don't instantiate it in a procedure or function. Instantiate
it at library level (i.e. as a library unit, or nested within a package,
but not within a procedure).
- Bob
prev parent reply other threads:[~1996-04-14 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-14 0:00 Help! type extensions - Gnat for Win95 Lance
1996-04-14 0:00 ` Robert A Duff [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