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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f4f6a5b783e1150c X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: MI for Ada Date: 1999/02/12 Message-ID: #1/1 X-Deja-AN: 443712776 References: <36C365F8.50E84F94@averstar.com> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1999-02-12T00:00:00+00:00 List-Id: In article <36C365F8.50E84F94@averstar.com> Tucker Taft writes: > It is probably too soon to tell. I suggest you design the > semantics of the feature. It may be that there are keywords that > work already. package Foo is new Bar(X,Y,Z) with body ... end Foo; Of course, given the opportunity to add a new body to a subprogram or package, it would also be useful to be able to define a template without an implementation: generic X,Y,Z: Integer; abstract package Bar is ... end Bar; It would be a very useful extension to the language. Any one want to work out the details of the semantics, then add it to gnat as a language extension? I suspect that taking it that far is not too much work, but the next step to allow a new generic to be derived from an existing and extend the interface is MUCH more work: generic type W is private; package Foo is new generic Bar with function Foobar return W; end Foo; -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...