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,4d972ac0c79198a5,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-13 10:47:04 PST Date: Tue, 13 May 2003 19:46:55 +0200 From: =?ISO-8859-1?Q?Rodrigo_Garc=EDa?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Generic child units Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch Message-ID: <3ec12f93$1@epflnews.epfl.ch> X-Trace: epflnews.epfl.ch 1052848019 128.178.76.8 (13 May 2003 19:46:59 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:37293 Date: 2003-05-13T19:46:55+02:00 List-Id: I need some enlightment in this area... Let us suppose that I have two generic packages declared in separate files and one is the parent of the other: generic type Elem is private; package Parent is type Vector is array (Integer range <>) of Elem; end Parent; generic package Parent.Child is subtype Vector2D is Vector (1 .. 2); end Parent.Child; How can I instantiate the child package within the declarative region of the parent package (as required by RM 10.1(18))? Rodrigo