Summary: format("%d", BigInt) problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-05-09 15:27:23 PDT ---
This is in reply to comment #3 of bug 5765

> > How do I perform the equivalent of str(ackermann(4, 2)) with BigInt?
> format("%d", ackermann(4,2))

I think it doesn't work with DMD 2.053beta:

import std.bigint, std.string;
void main() {
    format("%d", BigInt(1));

It prints:
std.format.FormatError: std.format Can't convert std.bigint.BigInt to string:
"string toString()" not defined

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to