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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e977cd3ab4e49fef X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Question about record rep spec placement Date: 1997/01/16 Message-ID: <32DE3FAD.17A1@lmtas.lmco.com>#1/1 X-Deja-AN: 210204127 references: <32DCFDAA.2656@lmtas.lmco.com> <32DD307D.7208@watson.ibm.com> cc: George.F.Rice@lmtas.lmco.com content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.01 (Win95; U) Date: 1997-01-16T00:00:00+00:00 List-Id: Norman H. Cohen wrote: > > Ken Garlington wrote: > > > > We have some Ada83 code that looks like the following: > > > > package Some_Package is > > > > type Some_Record is record > > -- components here > > end record; > > > > -- some arbitrary declarations here > > > > private > > > > for Some_Record use record > > -- component rep spec here > > end record; > > > > end; > > > > Are there cases in Ada where a record representation specification > > cannot be deferred until the private part of the package? [snip] > > There are a few cases where the freezing rules make a legal Ada-83 > program into an illegal Ada-95 program, but these cases are obscure and > pathological. For example, because of poor wording in the Ada-83 > definition of "forcing occurrence", > > subtype S is Integer range 0 .. Some_Record'Size; > > was not a forcing occurrence in Ada 83, but this declaration does freeze > the representation of Some_Record in Ada 95. We will check to see if this is the case. Is there a complete list of cases related to freezing occurences that are different between Ada83 and Ada? > > -- > Norman H. Cohen > mailto:ncohen@watson.ibm.com > http://www.research.ibm.com/people/n/ncohen -- LMTAS - The Fighter Enterprise - "Our Brand Means Quality" For job listings, other info: http://www.lmtas.com or http://www.lmco.com