it's time to change how things are printed

Steven Schveighoffer schveiguy at yahoo.com
Thu Nov 18 07:56:55 PST 2010


On Thu, 18 Nov 2010 10:14:07 -0500, Steven Schveighoffer  
<schveiguy at yahoo.com> 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


More information about the Digitalmars-d mailing list