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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fc67383cc0841f25 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!h30g2000vbr.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Rep Specing Variant Records Date: Wed, 16 Sep 2009 03:10:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2009091520225816807-rblove@airmailnet> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1253095811 10659 127.0.0.1 (16 Sep 2009 10:10:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Sep 2009 10:10:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h30g2000vbr.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8345 Date: 2009-09-16T03:10:11-07:00 List-Id: On Sep 16, 2:22=A0am, R.B. Love wrote: [snip] > First, does the discriminant take up any size in the record? =A0When I > tried this with a tagged record, I was told that my placement at 0 > bytes off set classed with the tag. =A0That's no good. You need to determine 'has_extra' from somewhere (otherwise, how do you know what variant you are using?) - are you getting it from a different location that that will hold 'normal_stuff'/'good_stuff'? You can move the descriminent to a passed the end of the last component...it doesn't have to be the first item but I suspect that you've very much in the realms of what your compiler would allow at that point. The 99.999% case is that it is the 1st item. Cheers -- Martin