From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2c708a8deef60a X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: Backward compatibility between Ada 95 and Ada 83 Date: 1997/09/30 Message-ID: <19970930121201.IAA12959@ladder02.news.aol.com>#1/1 X-Deja-AN: 276702326 References: <01bccd8e$68785d20$b229accf@default> X-Admin: news@aol.com Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada Date: 1997-09-30T00:00:00+00:00 List-Id: "James H. Robinson, III" 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