comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Ada Type Information
Date: 1999/03/05
Date: 1999-03-05T00:00:00+00:00	[thread overview]
Message-ID: <7bpk2g$eun$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36E03843.3AD74457@lmco.com

In article <36E03843.3AD74457@lmco.com>,
  Sam Carnicelli <samuel.charles.carnicelli@lmco.com> wrote:

> a tool written in Java.  We basically need, given a record type, the
> type starting bit
> position, and length in bits of all fields of a record.  For instance,
> given this record
> definition:

If the record doesn't have a rep spec and size clause, this information is
not defined by the language. Depending on what use you want to make of the
information, that could be a major problem. A new version of the compiler
would be well within its rights to add or remove padding, and to completely
shuffle the order of the fields.

If its important to you that fields be in a certian place with a certian size,
you should use rep specs.


T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-03-05  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-05  0:00 Ada Type Information Sam Carnicelli
1999-03-05  0:00 ` dewar
1999-03-06  0:00   ` Tom Moran
1999-03-08  0:00     ` Sam Carnicelli
1999-03-08  0:00   ` Sam Carnicelli
1999-03-09  0:00     ` robert_dewar
1999-03-09  0:00   ` korisko
1999-03-05  0:00 ` dennison [this message]
1999-03-08  0:00   ` Sam Carnicelli
1999-03-08  0:00     ` dennison
1999-03-08  0:00       ` Sam Carnicelli
1999-03-09  0:00       ` robert_dewar
1999-03-05  0:00 ` Tom Moran
1999-03-05  0:00   ` Sam Carnicelli
replies disabled

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