Scope of lambdas and closures

Rolv Seehuus rolv.seehuus at gmail.com
Sat Jul 30 13:54:54 PDT 2011


== Quote from Rolv Seehuus (rolv.seehuus at gmail.com)'s article
> == Quote from Daniel Murphy (yebblies at nospamgmail.com)'s article
> > "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.

Doh, never mind.
Sorry for wasting your time.

Cheers,
-r-


More information about the Digitalmars-d-learn mailing list