it's time to change how things are printed
Steven Schveighoffer
schveiguy at yahoo.com
Thu Nov 18 07:53:20 PST 2010
On Thu, 18 Nov 2010 10:44:00 -0500, Nick Sabalausky <a at a.a> wrote:
> I like it, *provided that* there's a quick-and-easy way to just get a
> string
> when that's all you want. At the very least there should be a standard
> sink
> function that's a default argument to toString that just simply builds a
> string. What we definitely *don't* want is for the user to ever have to
> write their own sink delegate just to get a string (which I've had to do
> with Tango on occasion).
to!string(x);
(which will probably do the delegate/etc when x.toString is defined)
-Steve
More information about the Digitalmars-d
mailing list