comp.lang.ada
 help / color / mirror / Atom feed
From: swhalen@netcom.com (Steve Whalen)
Subject: GnatLib vs. pragma Interface
Date: 1997/08/20
Date: 1997-08-20T00:00:00+00:00	[thread overview]
Message-ID: <swhalenEF8Bys.M45@netcom.com> (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
{===----------------------------------------------------------------------===}




             reply	other threads:[~1997-08-20  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-20  0:00 Steve Whalen [this message]
1997-08-20  0:00 ` GnatLib vs. pragma Interface Robert Dewar
1997-08-21  0:00   ` Steve Whalen
1997-08-21  0:00     ` Robert Dewar
replies disabled

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