[dmd-internals] OSX 64 bit
Robert Clipsham
robert at octarineparrot.com
Wed Nov 30 05:30:45 PST 2011
On 30 November 2011 09:30, Don Clugston <dclugston at googlemail.com> wrote:
> On 30 November 2011 09:27, Walter Bright <walter at digitalmars.com> wrote:
> > The compiler is passing the test suite now, the only failure is in the
> unit
> > tests of std.bigint. Anyhow, any brave souls who want to try it out
> should
> > have a go!
>
> If anyone tries it, please help me fix the bigint failure by telling
> me the result of:
>
> import std.bigint;
> import std.stdio;
>
> string toHex(BigInt x)
> {
> string outbuff="";
> void sink(const(char)[] s) { outbuff ~= s; }
> x.toString(&sink, "%x");
> return outbuff;
> }
>
> void main()
> {
> writeln(toHex(BigInt("0x1234567890123456789")));
> }
>
44444567_89ABCD45_6789ABCD
--
Robert
http://octarineparrot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20111130/c7a77d9e/attachment.html>
More information about the dmd-internals
mailing list