[dmd-beta] dmd 1.062 and 2.047 beta

Andrei Alexandrescu andrei at erdani.com
Thu Jun 10 11:49:54 PDT 2010


On 06/10/2010 01:27 PM, Walter Bright wrote:
> The %*s should be %.*s

Fixed. Please svn up.

> Also, the format will still stop anyway on encountering a 0 byte. Then,
> there's the overhead of fprintf itself. Better to just replace the thing
> with a call to fwrite:
>
> enforce(fwrite(args[0].ptr, T.sizeof, args[0].length, .stdout.p.handle)
> == args[0].length);

I need to print an \n too, and atomically at that.


Andrei


More information about the dmd-beta mailing list