Re: accessing record element (question to the pros)



Norbert Caspari wrote:
(...) In this example I try to build a Union Record, where I can
access a single Byte either as a small positive Integer value or as
single Bits. (...)

You don't do this in Ada with variant records. I would elaborate but I'm just leaving the office. Take a look at Unchecked_Conversion and the 'Address attribute for a start.
.