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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9aa4352fa83d37dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-01 12:21:04 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: library level required or not? Date: 01 Mar 2004 20:17:20 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <200403011717.22528.maa@liacc.up.pt> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1078172463 21819 62.49.19.209 (1 Mar 2004 20:21:03 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 1 Mar 2004 20:21:03 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:5986 Date: 2004-03-01T20:17:20+00:00 List-Id: Marius Amado Alves writes: > On Monday 01 March 2004 18:41, Preben Randhol wrote: > > On 2004-03-01, Marius Amado Alves 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.