comp.lang.ada
 help / color / mirror / Atom feed
From: johnherro@aol.com (John Herro)
Subject: Re: Backward compatibility between Ada 95 and Ada 83
Date: 1997/09/30
Date: 1997-09-30T00:00:00+00:00	[thread overview]
Message-ID: <19970930121201.IAA12959@ladder02.news.aol.com> (raw)
In-Reply-To: 01bccd8e$68785d20$b229accf@default


"James H. Robinson, III" <jr3uva90@erols.com> writes:
> I'm using an Ada 95 compiler, but my
> class is teaching Ada 83.  How backwardly
> compatible is Ada 95 with is Ada 83?

Very.  You have almost nothing to worry about.  With very few exceptions,
Ada 95 is a superset of Ada 83, and anything you write in Ada 83 will
compile in Ada 95.

Of course, you must avoid using the six new reserved words as identifiers:
abstract, aliased, protected, requeue, tagged, and until.  One other thing
*might* bite you:  Let's say you write an Ada 83 package spec that requires
no body (because it contains only type definitions and object declarations,
but no procedure and function specs).  Now let's say you want to write a
body anyway, perhaps to initialize an array.  This will compile in Ada 83,
but in Ada 95 it won't compile until you add pragma Elaborate_Body.  Remove
that pragma when you turn in your Ada 83 assignment.  If you don't
understand that because you haven't covered packages yet, don't worry about it!

Good luck in your class!  I know you'll really like Ada!

- John Herro
Software Innovations Technology
http://members.aol.com/AdaTutor
ftp://members.aol.com/AdaTutor






       reply	other threads:[~1997-09-30  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01bccd8e$68785d20$b229accf@default>
1997-09-30  0:00 ` John Herro [this message]
1997-09-30  0:00 ` Backward compatibility between Ada 95 and Ada 83 Samuel Tardieu
1997-09-30  0:00 ` W. Wesley Groleau x4923
1997-09-30  0:00 ` Dale Stanbrough
1997-10-01  0:00 Marin David Condic, 561.796.8997, M/S 731-96
  -- strict thread matches above, loose matches on Subject: below --
1997-10-01  0:00 Marin David Condic, 561.796.8997, M/S 731-96
replies disabled

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