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,cdaa3abe008a8f57 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Ada Type Information Date: 1999/03/05 Message-ID: <7bpk2g$eun$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 451693257 References: <36E03843.3AD74457@lmco.com> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Mar 05 21:58:45 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-03-05T00:00:00+00:00 List-Id: In article <36E03843.3AD74457@lmco.com>, Sam Carnicelli 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