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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fa8a8653458b3e4b,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!t13g2000yqn.googlegroups.com!not-for-mail From: PForan Newsgroups: comp.lang.ada Subject: using the 'use at' feature inside a record? Date: Wed, 9 Sep 2009 13:07:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8f6142f2-ea37-46d7-a29c-0498da5dd9da@t13g2000yqn.googlegroups.com> NNTP-Posting-Host: 216.226.58.163 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1252526871 27521 127.0.0.1 (9 Sep 2009 20:07:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Sep 2009 20:07:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t13g2000yqn.googlegroups.com; posting-host=216.226.58.163; posting-account=GpgGWwoAAAAahTDCu6ziJy_alZQr5ssV User-Agent: G2/1.0 X-HTTP-Via: 1.1 MTL-PXY01 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8263 Date: 2009-09-09T13:07:51-07:00 List-Id: Hi all, I have a question about the "use at" feature and how it can be used inside a record to simulate C's unions. I often have an array of bytes, as well as a string which is "use at"'ed on top of the byte buffer, very useful as I can play with the data in any way I choose. i.e. byte_buf: array(1..100) of unsigned_8; str_buf: string(1..100); for str_buf use at byte_buf'address; Is it possible to have something like this within a record? TIA, Phil