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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d2a494b60524aba9,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <4543341b$0$7220$426a74cc@news.free.fr> From: Yves Bailly Subject: Partial generic instanciation Newsgroups: comp.lang.ada Date: Sat, 28 Oct 2006 12:41:30 +0200 User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Organization: Guest of ProXad - France NNTP-Posting-Date: 28 Oct 2006 12:42:35 MEST NNTP-Posting-Host: 81.56.171.53 X-Trace: 1162032155 news-3.free.fr 7220 81.56.171.53:54868 X-Complaints-To: abuse@proxad.net Path: g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!feed.ac-versailles.fr!proxad.net!cleanfeed1-a.proxad.net!nnrp6-2.free.fr!not-for-mail Xref: g2news2.google.com comp.lang.ada:7241 Date: 2006-10-28T12:42:35+02:00 List-Id: Hello all, I didn't find anywhere any reference to this, but I'm wondering anyway : is it possible to do partial generic instanciation, something like partial template instanciation in C++ ? Say for example you have a package like this : 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); I *know* this actually doesn't compile, but is there some syntax I'm not aware of to achieve this ? Best regards, -- (o< | Yves Bailly : http://kafka-fr.net | -o) //\ | Linux Dijon : http://www.coagul.org | //\ \_/ | | \_/`