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-Thread: 103376,d2a494b60524aba9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Partial generic instanciation Date: Sat, 28 Oct 2006 09:03:52 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4543341b$0$7220$426a74cc@news.free.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1162040633 4216 192.74.137.71 (28 Oct 2006 13:03:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 28 Oct 2006 13:03:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xuxpTRKWlo3QvUntjar0h1ceGjY= Xref: g2news2.google.com comp.lang.ada:7242 Date: 2006-10-28T09:03:52-04:00 List-Id: Yves Bailly writes: > generic > type T_1 is private; > type T_2 is private; > package Pkg is > -- .... > end Pkg; > > Is it possible to declare a new package with something like : > > with Pkg; > generic > type TT is private; > package Pkg_Int is new Pkg(T_1 => Integer, T_2 => TT); No, not directly. But you can do this: generic type TT is private; package Pkg_Int is package P is new Pkg(T_1 => Integer, T_2 => TT); end Pkg_Int; - Bob