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,695540ed5945ed90 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: GnatLib vs. pragma Interface Date: 1997/08/20 Message-ID: #1/1 X-Deja-AN: 268447082 References: Organization: New York University Newsgroups: comp.lang.ada Date: 1997-08-20T00:00:00+00:00 List-Id: Steve asks <. and this one has me puzzled.>> pragma Interface is not an official part of Ada 95, but in practice it will be supported by any reasonable Ada 95 compiler (you can make sure you avoid such uses if you like by using pragma Restrictions (Implementation_Pragmas) (which unfortunately is not a standard feature ...) <> If the Rationale says this, it is wrong. The Ada 83 pragma is definitely NOT equivalent to the Ada 95 Import pragma (although in GNAT, Interface is extended to be equivalent). And as noted above, Interface is NOT IN Ada 95, so it is not just an obsolescent feature which someone thinks is bad style to use, it is a potentially non-portable interface (not that this is a consideration in the GNAT sources themselves). The GNAT code should indeed use Import, and you may award yourself a prize for finding a bug in the GNAT sources. If you send it off to report@gnat.com, it will no doubt get fixed :-) Of course this is not exactly the most critical bug located recently -- but on the other hand, cleaning up the sources is a valuable long term goal!