[Issue 5231] BigInt lacks a normal toString()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 18 13:40:27 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5231



--- Comment #14 from Don <clugdbug at yahoo.com.au> 2010-11-18 13:39:08 PST ---
(In reply to comment #12)
> So, you don't want writeln(bi); or to!string(bi) to work?

No, that's not what I meant.

> I would think that
> ideally, BigInt would work exactly the same way that integers do.
> 
> to!string(i) -> decimal
> writeln(i) -> decimal
> writefln("%s", i) -> decimal
> writefln("%d", i) -> decimal
> writefln("%f", i) -> hex
> 
> 
> So, ideally, BigInt would do the same:
> 
> to!string(bi) -> decimal
> writeln(bi) -> decimal
> writefln("%s", bi) -> decimal
> writefln("%d", bi) -> decimal
> writefln("%f", bi) -> hex

Yes. The thing I do *not* want is where it works for one case but not any of
the others. I find that suggestion completely indefensible.

BTW, the void toString() was just a typo by me. I meant string toString().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list