From: Martin <martin.dowie@btopenworld.com>
Subject: Re: Rep Specing Variant Records
Date: Wed, 16 Sep 2009 03:10:11 -0700 (PDT)
Date: 2009-09-16T03:10:11-07:00 [thread overview]
Message-ID: <f875d27b-6ebe-43a1-98f0-bb4e19f17e69@h30g2000vbr.googlegroups.com> (raw)
In-Reply-To: 2009091520225816807-rblove@airmailnet
On Sep 16, 2:22 am, R.B. Love <rbl...@airmail.net> wrote:
[snip]
> First, does the discriminant take up any size in the record? When I
> tried this with a tagged record, I was told that my placement at 0
> bytes off set classed with the tag. That'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
next prev parent reply other threads:[~2009-09-16 10:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 1:22 Rep Specing Variant Records R.B. Love
2009-09-16 8:19 ` Petter
2009-09-16 10:10 ` Martin [this message]
2009-09-16 15:03 ` Adam Beneschan
2009-09-17 2:39 ` Robert Love
2009-09-17 6:57 ` Niklas Holsti
2009-09-17 8:25 ` Martin
2009-09-18 2:28 ` Robert Love
2009-10-10 2:49 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox