Union redux

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 1 17:03:52 PDT 2015


On 6/1/15 3:44 PM, Walter Bright wrote:
> On 6/1/2015 2:32 PM, Andrei Alexandrescu wrote:
>> On 6/1/15 2:02 PM, Walter Bright wrote:
>>>>> 3/ union and @safe is currently undefined. I proposed to make
>>>>> everything
>>>>> involving unions @system, and we will figure it out from there.
>>>
>>> No.
>>
>> What should we do here then? -- Andrei
>
> There's nothing unsafe about:
>
>     union { char c; int i; }

Sounds good, no indirection => safety is in good shape. -- Andrei


More information about the Digitalmars-d mailing list