Replacing std.math raw pointer arithmetic with a union type

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Wed May 17 13:25:26 PDT 2017


On Wednesday, 17 May 2017 at 19:26:32 UTC, tsbockman wrote:
> On Wednesday, 17 May 2017 at 15:30:29 UTC, Stefan Koch wrote:
>> the special case it supports if cast(uint*)&float;
>> and cast(ulong*)&double.
>
> What about casting from real* when real.sizeof > double.sizeof?

unsupported. The code in ctfeExpr (paintFloatInt) explicitly 
checks for size == 4 || size == 8


More information about the Digitalmars-d mailing list