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,start X-Google-Attributes: gid103376,public From: swhalen@netcom.com (Steve Whalen) Subject: GnatLib vs. pragma Interface Date: 1997/08/20 Message-ID: #1/1 X-Deja-AN: 268427016 Sender: swhalen@netcom14.netcom.com Organization: ? Newsgroups: comp.lang.ada Date: 1997-08-20T00:00:00+00:00 List-Id: I noticed that "a-comlin.adb" is the only place in the Os2 version of the GNATLIB library source code where "pragma Interface" is used (according to a quick check with fgrep). It struck me as odd, since in the one short section of code, there is one "pragma Import", right next to two "pragma Interface"'s. According to the Ada95 rational, "pragma Import" is to be preferred in Ada95 over "pragma Interface" (obsoleted from Ada83 I believe). I think it did say that the two were functionally equivalent. I'm curious as to why the pragma Interface's are used there. Are they a left over from a conversion from Ada83 code, or is there a positive reason they're used? I use the GNAT source code as a resource to remind myself of what good Ada95 code looks like. and this one has me puzzled. -- {===----------------------------------------------------------------------===} Steve Whalen swhalen@netcom.com {===----------------------------------------------------------------------===}