MSVC: fix for failing tests due to strtod+hexadecimal literals

Johan Engelen via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Mar 2 10:51:26 PST 2015


On Monday, 2 March 2015 at 18:49:42 UTC, Johan Engelen wrote:
> On Monday, 2 March 2015 at 07:17:37 UTC, Kai Nacke wrote:
>>
>> What about implement a hex value parsing function which is 
>> invoked if the result is 0?
>
> dmd has a strold for compilers that do not support hex floats:
> https://github.com/D-Programming-Language/dmd/blob/master/src/backend/strtold.c
>
> Or do you think that is overkill and we are better off 
> implementing our own hex parser?

Actually I am thinking about ripping out just the hex parsing 
part from dmd's strtold, and tweaking it for our purposes...


More information about the digitalmars-d-ldc mailing list