On Tuesday, 30 September 2014 at 17:22:44 UTC, Gary Willoughby wrote:
What is a sink delegate?

Instead of

string toString() { return "foo"; }

for example, you would use:

void toString(void delegate(string) sink) { sink("foo"); }

The sink argument there is then free to view and discard the data or to make a private copy using whatever scheme it desires.

Reply via email to