From: Simon Wright <simon@pushface.org>
Subject: Re: library level required or not?
Date: 01 Mar 2004 20:17:20 +0000
Date: 2004-03-01T20:17:20+00:00 [thread overview]
Message-ID: <x7vu118cofj.fsf@smaug.pushface.org> (raw)
In-Reply-To: mailman.50.1078168232.327.comp.lang.ada@ada-france.org
Marius Amado Alves <maa@liacc.up.pt> writes:
> On Monday 01 March 2004 18:41, Preben Randhol wrote:
> > On 2004-03-01, Marius Amado Alves <maa@liacc.up.pt> wrote:
> > > Ok, I found Ada Issue 115, which clarifies that "a language-defined
> > > generic package may be instantiated at any nesting depth."
> > >
> > > I'm still in the dark regarding unbounded strings though, as
> > > Ada.Strings.Unbounded is not generic.
> >
> > What do you mean?
>
> If you look at the GNAT sources for example, you'll find that
> Unbounded_String is controlled. And yet you can declare an unbounded
> string inside a 'main' program. Try pulling that out with your own
> controlled type.
?
There is a difference between instantiating the generic, which amounts
to defining a new type derived from Controlled, and declaring an
instance of a type .. is this 3.9.1(3)?
(I also see (4), "A type extension shall not be declared in a generic
body if the parent type is declared outside that body." I think ISNBAL
-- I shall never be a lawyer)
--
Simon Wright 100% Ada, no bugs.
next prev parent reply other threads:[~2004-03-01 20:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200403011717.22528.maa@liacc.up.pt>
2004-03-01 18:49 ` library level required or not? Marius Amado Alves
2004-03-01 18:41 ` Preben Randhol
2004-03-01 19:21 ` Marius Amado Alves
2004-03-01 20:17 ` Simon Wright [this message]
2004-03-01 23:32 ` Marius Amado Alves
2004-03-02 2:36 ` Robert I. Eachus
2004-03-01 17:17 Marius Amado Alves
2004-03-01 23:37 ` Randy Brukardt
2004-03-02 0:21 ` Marius Amado Alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox