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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab132517972acd5f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: accessing record element (question to the pros) Date: Fri, 24 Feb 2006 18:08:35 +0100 Message-ID: <43FF3D93.3080702@mailinator.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net gIX7Z/P9mGtQEXc5celbbwMGLy+5dyvUVe3qxLDidaXMLL1f4= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3141 Date: 2006-02-24T18:08:35+01:00 List-Id: 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.