comp.lang.ada
 help / color / mirror / Atom feed
From: kst@thomsoft.com (Keith Thompson)
Subject: Re: Anyone integrate Ada-83 with Ada-95
Date: 1996/04/04
Date: 1996-04-04T00:00:00+00:00	[thread overview]
Message-ID: <DpBCLo.8w5@thomsoft.com> (raw)
In-Reply-To: DpAKwr.96K.0.-s@inmet.camb.inmet.com

In <DpAKwr.96K.0.-s@inmet.camb.inmet.com> stt@henning.camb.inmet.com (Tucker Taft) writes:
> Scott Moody (scott@plato.ds.boeing.com) wrote:
> : Has anyone integrated Ada-83 programs with GNAT Ada-95 programs?

> Ada 83 is a subset of Ada 95.  So you are really asking about
> integrating Ada 95 with a subset of Ada 95.  There is no issue here,
> unless you are concerned about style differences, perhaps.
> Much of the code compiled by GNAT I am sure conforms to the
> Ada 83 subset of Ada 95, since that is currently in what many of 
> the reusable packages are written.

Ada 83 is very nearly a subset of Ada 95.  There are some minor
incompatibilities (for example, an Ada 83 program that uses "tagged" as
an identifier is not a legal Ada 95 program), but they turn out not to
be much of a problem.  In fact, it's not uncommon for an entire large
program written in Ada 83 to compile without error under Ada 95.

What's likely to be a bigger problem is portability from
one implementation to another.  A program that depends on
implementation-defined attributes, pragmas, library units, or even
characteristics of the predefined types will require some work to port
to another implementation, whether the target implementation is Ada 83
or Ada 95.

You might want to just feed your existing Ada 83 code to your Ada 95
compiler and see what happens.

-- 
Keith Thompson (The_Other_Keith) kst@thomsoft.com
TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
This sig uses the word "Exon" in violation of the Communications Decency Act.




      reply	other threads:[~1996-04-04  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-02  0:00 Anyone integrate Ada-83 with Ada-95 Scott Moody
1996-04-03  0:00 ` Tucker Taft
1996-04-04  0:00   ` Keith Thompson [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