Re: accessing record element (question to the pros)
- From: "Alex R. Mosteo" <devnull@xxxxxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 18:08:35 +0100
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.
.
- References:
- accessing record element (question to the pros)
- From: Norbert Caspari
- accessing record element (question to the pros)
- Prev by Date: Re: accessing record element (question to the pros)
- Next by Date: Re: accessing record element (question to the pros)
- Previous by thread: Re: accessing record element (question to the pros)
- Next by thread: Re: accessing record element (question to the pros)
- Index(es):