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,bfc24df595f18c1d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-17 14:04:16 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Interfaces and Generics? Date: Wed, 17 Sep 2003 16:06:16 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3F67A207.7060007@attbi.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:42643 Date: 2003-09-17T16:06:16-05:00 List-Id: "> chris wrote: > Hi, > > Will Ada 200x (Ada XP ;) ) revise generics for the new interfaces that > will be present? I expect so, but I thought I'd ask anyway. > > For example, will you be able to specify that a generic package only > deals with something that implements two (or more) given interfaces? Yes. Interfaces are both supported in formal derived types and with a new formal interface type. BTW, the syntax of the examples that Robert Eachus has been giving is all wrong. Look at the AI itself to see the syntax: http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00251.TXT. (Note: I've got a new version that will be posted soon.) Randy.