[Issue 5231] BigInt lacks a normal toString()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 18 00:57:18 PST 2010


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


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #4 from nfxjfg at gmail.com 2010-11-18 00:56:03 PST ---
(In reply to comment #2)
> void toString() is a fundamentally broken design. It's wrong on many levels.

But it allows more control over formatting and potentially reduces memory
allocation. string toString() seems more broken to me: no control, forces you
to do memory allocation. (Another broken design issue is that _all_ objects in
D have a toString() method, even if it doesn't make sense, but that is
off-topic here.)

What is worrying is that void toString is nowhere documented. Does std.format
use it or what?

-- 
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