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,d534ff88bae65c48 X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: hunting snarks Date: 1999/12/14 Message-ID: <3856A48D.F4AF4D84@averstar.com>#1/1 X-Deja-AN: 560667960 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-14T00:00:00+00:00 List-Id: Robert A Duff wrote: > > Stephen Leake writes: > > > Anyway, this problem has been mentioned here before. I'm considering > > hacking into GNAT to provide a fix, probably in the form of a pragma > > Overrides. But first, I'd like to check if anyone else is working on a > > solution, or has a proposal for a syntax for a solution. > > Somebody proposed a pragma along those lines to the ARG recently. > Check out the Ada Issues. As mentioned in another reply, the relevant AI is: http://www.ada-auth.org/cgi-bin-acats/cvsweb.cgi/AIs/AI-00218.DOC?rev=1.3 The basic idea is a pragma Overrides that means a subprogram *must* be overriding something, and a configuration pragma Explicit_Overriding that means that any subprogram without a pragma Overrides must *not* be overriding something. For special cases involving generics which declare a type derived from a formal type, there is also a pragma Might_Override which overrules Explicit_Overriding, to indicate that the given subprogram might or might not override.. > > - Bob -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA