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: a07f3367d7,13aaae984988cb0d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Discriminant and type extensions Date: Wed, 07 Oct 2009 09:21:26 +0200 Organization: Adalog Message-ID: References: <2b205c63-55e7-4cef-95d2-5b0ece0b8866@p9g2000vbl.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1254903113 3365 195.25.228.57 (7 Oct 2009 08:11:53 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 7 Oct 2009 08:11:53 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <2b205c63-55e7-4cef-95d2-5b0ece0b8866@p9g2000vbl.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:8597 Date: 2009-10-07T09:21:26+02:00 List-Id: Hibou57 (Yannick Duch�ne) a �crit : > Hello boys and girls, > > I was looking at two of my generic packages, fully functionals, that > is not the trouble, but not expressive enough IMHO. > > The lack, from my point of view, is in the way a type can be extended > from a another type with discriminants. > > What I mean : I've got a type in a package, a tagged type with > discriminants. Then a second package extends this type, but the > discriminants from the extended type does not appears in the extension > declaration. When I want to instantiate the type (the extended one), I > obviously have to provide the actuals for these discriminants (the > ones coming from the type which was extended). > > What do you think about it ? > > Do you think it would be a good proposal to allow the discriminant to > be explicitly recalled in an extension declaration ? (just to be more > explicit and expressive) > See http://www.adalog.fr/qt11.htm (assuming you can read french ;-) ) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr