Replacing std.math raw pointer arithmetic with a union type

Dominikus Dittes Scherkl via Digitalmars-d digitalmars-d at puremagic.com
Thu May 18 02:14:24 PDT 2017


On Wednesday, 17 May 2017 at 20:25:26 UTC, Stefan Koch wrote:
> 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

we finally need support for ucent!


More information about the Digitalmars-d mailing list