[dmd-internals] Nested Unions?

David Nadlinger code at klickverbot.at
Fri Oct 12 13:13:34 PDT 2012


On Fri, Oct 12, 2012 at 5:43 PM, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> Which concludes that - [1] yes a context pointer is included in the
> union layout, but [2] its value is never anything meaningful because
> it is still a field in a union.

Regarding (1), that's why I wrote _layout_, but I see how you could
interpret it differently. In any case, you are right, DMD just tries
to read from offset 0 to get the context pointer, which is also where
a is stored.

David


More information about the dmd-internals mailing list