On 20/03/2016 16:57, Nick Treleaven wrote:
void opCall(ARGS...)(void delegate(ARGS) call, ARGS args) { stack.put(() => call(args)); }
Maybe this method would be nice (does the same thing): Deferrer d; ... d.capture!writeln("i = ", i);The name capture makes it clearer the arguments are not taken by reference IMO.
@Xinok: I suggest for now you put it in a Github repository somewhere.