[dmd-beta] dmd 2.053 beta

Nick Sabalausky semitwist at gmail.com
Sat May 7 00:48:43 PDT 2011


(Sorry if this appears on the list twice. I first sent it from an address at 
my domain, but my domain's in the middle of a DNS update so it's kinda screw 
ATM.)

Not sure if this is a regression or a bug fix, but:

-----------------------------------
import std.algorithm;

void main()
{
 int foo(int i) { return i; }

 int[] arr;
 auto x = map!( (int a){return foo(a);} )(arr);
}
-----------------------------------

That worked in 2.052, but fails to compile in 2.053 beta with the message:

test.d(8): Error: delegate std.algorithm.__dgliteral1 cannot access frame of 
function test.main.__dgliteral1



More information about the dmd-beta mailing list