DVCS

Walter Bright newshound2 at digitalmars.com
Sat Jan 22 00:48:23 PST 2011


Andrei Alexandrescu wrote:
> On 1/22/11 12:35 AM, Walter Bright wrote:
>> Phobos1 on 10.10 is dying in its unit tests because Ubuntu changed how
>> gcc's strtof() works. Erratic floating point is typical of C runtime
>> library implementations (the transcendentals are often sloppily done),
>> which is why more and more Phobos uses its own implementations that Don
>> has put together.
> 
> I think we must change to our own routines anyway. One strategic 
> advantage of native implementations of strtof (and the converse sprintf 
> etc.) is that we can CTFE them, which opens the door to interesting 
> applications.

We can also make our own conversion routines consistent, pure, thread safe and 
locale-independent.


More information about the Digitalmars-d mailing list