Scope of lambdas and closures

Rolv Seehuus rolv.seehuus at gmail.com
Tue Jul 19 13:46:39 PDT 2011


== Quote from Daniel Murphy (yebblies at nospamgmail.com)'s article
> That would be http://d.puremagic.com/issues/show_bug.cgi?id=2634

Thanks,

Is there a related/same reason why this don't compile?

unittest {
  static void stuff(){}
  static void function()[string] functions = [ "stuff":&stuff ];
}

Cheers,
-r-


More information about the Digitalmars-d-learn mailing list