comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <GarlingtonKE@lmtas.lmco.com>
Cc: George.F.Rice@lmtas.lmco.com
Subject: Re: Question about record rep spec placement
Date: 1997/01/16
Date: 1997-01-16T00:00:00+00:00	[thread overview]
Message-ID: <32DE3FAD.17A1@lmtas.lmco.com> (raw)
In-Reply-To: 32DD307D.7208@watson.ibm.com


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




  reply	other threads:[~1997-01-16  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-15  0:00 Question about record rep spec placement Ken Garlington
1997-01-15  0:00 ` Bob Gilbert
1997-01-16  0:00   ` Fergus Henderson
1997-01-17  0:00   ` Ken Garlington
1997-01-17  0:00     ` Bob Gilbert
1997-01-17  0:00       ` Robert A Duff
1997-01-17  0:00         ` Ken Garlington
1997-01-18  0:00           ` Robert A Duff
1997-01-18  0:00             ` Ken Garlington
1997-01-19  0:00               ` Robert A Duff
1997-01-21  0:00         ` Bob Gilbert
1997-01-22  0:00           ` Ken Garlington
1997-01-23  0:00             ` Art Schwarz
1997-01-25  0:00               ` Ken Garlington
1997-01-24  0:00             ` Bob Gilbert
1997-01-25  0:00               ` Ken Garlington
1997-01-20  0:00       ` Ken Garlington
1997-01-15  0:00 ` Norman H. Cohen
1997-01-16  0:00   ` Ken Garlington [this message]
1997-01-17  0:00     ` Robert A Duff
1997-01-18  0:00       ` Ken Garlington
1997-01-16  0:00 ` Jeff Creem
1997-01-16  0:00 ` Jerome Desquilbet
replies disabled

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