Full closures not working with lazy parameters

Xinok xnknet at gmail.com
Sat Nov 3 05:30:53 PDT 2007


Compiled using DMD 2.007 on Windows.

int delegate() foo(lazy int arg){
	return {return arg;};
}

void main(){
	auto ptr = foo(35);
	writefln(ptr());
}


This code gives an access violation error.


More information about the Digitalmars-d-bugs mailing list