comp.lang.ada
 help / color / mirror / Atom feed
* GnatLib vs. pragma Interface
@ 1997-08-20  0:00 Steve Whalen
  1997-08-20  0:00 ` Robert Dewar
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Whalen @ 1997-08-20  0:00 UTC (permalink / raw)



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<g>. and this one has me puzzled.

-- 
{===----------------------------------------------------------------------===}
                    Steve Whalen     swhalen@netcom.com
{===----------------------------------------------------------------------===}




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-08-21  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-20  0:00 GnatLib vs. pragma Interface Steve Whalen
1997-08-20  0:00 ` Robert Dewar
1997-08-21  0:00   ` Steve Whalen
1997-08-21  0:00     ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox