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,5b080dc7a4a5ad15,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-15 05:08:05 PST Path: supernews.google.com!sn-xit-03!sn-xit-04!supernews.com!europa.netcrusader.net!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!opentransit.net!jussieu.fr!unilim.fr!NewsWatcher!user From: gauthier@alphainfo.unilim.fr (Michel Gauthier) Newsgroups: comp.lang.ada Subject: Ada 0y wish list: parameters of package parameters Date: 15 Feb 2001 13:07:00 GMT Organization: Universite de Limoges Message-ID: NNTP-Posting-Host: 193.50.185.13 X-Trace: limdns.unilim.fr 982242420 21876 193.50.185.13 (15 Feb 2001 13:07:00 GMT) X-Complaints-To: usenet@news.unilim.fr NNTP-Posting-Date: 15 Feb 2001 13:07:00 GMT Xref: supernews.google.com comp.lang.ada:5273 Date: 2001-02-15T13:07:00+00:00 List-Id: My main wish about Ada-0Y is about the following. I am used to defining what I call 'signature packages', generic packages with in principle nothing inside, but suitable to define future parameters. generic type Item_Type is private ; -- operations defining something like an algebraic structure package Some_Algebra is end ; Example of use : generic with package Numbers is new Ring_Structure ( <> ) ; package Polynomials is ... end Polynomials ; No problem at this point. The problem appears when I add signatures for order structures, and try to specify. The intent is : generic with package Structure_1 is new Algrbraic_Structure ( any parameters ) ; with package Structure_2 is new Order_Structure ( same type , anything else ) ; package Something is ... end Something ; Ada-95 solutions are complex and not fully general. A possible syntax could be : with package Structure_1 is new Algrbraic_Structure ( <> ) ; with package Structure_2 is new Order_Structure ( Structure_1 . Item_Type , others => <> ) ; Any suggestion or opinion ? ---------- ---------- ---------- ---------- Michel Gauthier / Laboratoire d'informatique 83, rue d'Isle / F-87000 Limoges telephone +33 555 43 69 73 fax +33 555 43 69 77 ---------- ---------- ---------- ---------- Nous n'etions pas dans la langueur, nous ne sombrons pas dans l'allegresse. ---------- ---------- ---------- ----------