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.