digitalmars.D.bugs - Full closures not working with lazy parameters
- Xinok (9/9) Nov 03 2007 Compiled using DMD 2.007 on Windows.
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.
Nov 03 2007








Xinok <xnknet gmail.com>