On Thu, 18 Nov 2010 10:14:07 -0500, Steven Schveighoffer <[email protected]> wrote:


There is a better way, as demonstrated by BigInt (whose author refuses to implement toString()):

void toString(scope void delegate(scope const(char)[] data), string format = null)

I should also note, I'm not fond of calling this 'toString', but that's how BigInt does it. It seems inaccurate, when the delegate could do just about anything with the data, not just building strings.

commence bikeshedding :)

-Steve

Reply via email to