comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@dsd.camb.inmet.com (Bob Duff)
Subject: Re: Package Interface, and interoperbility
Date: Sat, 24 Sep 1994 21:05:53 GMT
Date: 1994-09-24T21:05:53+00:00	[thread overview]
Message-ID: <CwnJxt.JFs@inmet.camb.inmet.com> (raw)
In-Reply-To: WOODRUFF.94Sep23155316@ec2226.addvax.llnl.gov

In article <WOODRUFF.94Sep23155316@ec2226.addvax.llnl.gov>,
 <WOODRUFF@ec2226.addvax.llnl.gov> wrote:
>I have been studying the package Interface and I am puzzled about how
>Ada implementations will be able to interface with other languages in
>one specific situation.  I'm probably overlooking some important feature
>so I hope somebody will enlighten me.

The idea is that implementations will provide various interfaces
specific to particular implementations (if necessary), such as
Interfaces.Microsoft_C, Interfaces.Borland_C, Interfaces.Some_Other_C.
Interfaces.C will just be an interface to the "default" C compiler:

    package Interfaces.C renames Interfaces.Whatever_C;

If you don't like the default, compile a different renames, or else
directly 'with' Interfaces.Your_Favorite_C.

In practice, most C compilers follow the same conventions, so the same
Interfaces.C might work for all C compilers -- if that's true, then the
Ada compiler will only need one Interfaces.C.  The above scenario is for
cases where the other language has different and incompatible compilers.
So you might see Interfaces.This_Lisp and Interfaces.That_Lisp.
-- 
Bob Duff                                bobduff@inmet.com
Oak Tree Software, Inc.
Ada 9X Mapping/Revision Team (Intermetrics, Inc.)



      parent reply	other threads:[~1994-09-24 21:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-23 15:53 Package Interface, and interoperbility WOODRUFF
1994-09-24 10:44 ` Stephen J Bevan
1994-09-24 21:05 ` Bob Duff [this message]
replies disabled

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