Language features and reinterpret casts
BCS
none at anon.com
Mon Sep 20 22:16:37 PDT 2010
Hello Don,
> BCS wrote:
>
>> Hello bearophile,
>>
>>> Jesse Phillips:
>>>
>>>> Why not, define the behavior and leave it.
>>>>
>>> This was the original purpose of my thread, but Walter has explained
>>> me that this is not possible for the unions:
>>>
>> I don't see how those apply to unions.
>>
> It's going to be implementation defined behaviour (will depend on
> endianness)
Does that matter if the members are the same size?
> but not undefined behaviour.
> BTW std.math heavily relies on reinterpret casting float->int.
--
... <IXOYE><
More information about the Digitalmars-d
mailing list