Scope of lambdas and closures

Daniel Murphy yebblies at nospamgmail.com
Tue Jul 19 20:20:39 PDT 2011


"Rolv Seehuus" <rolv.seehuus at gmail.com> wrote in message 
news:j04qff$i4s$1 at digitalmars.com...
> Is there a related/same reason why this don't compile?
>
> unittest {
>  static void stuff(){}
>  static void function()[string] functions = [ "stuff":&stuff ];
> }

That compiles for me. 




More information about the Digitalmars-d-learn mailing list