anonymous function/delegate usage

Sam Hu samhu.samhu at nospam.com
Thu Nov 12 23:32:15 PST 2009


BCS Wrote:

> If the function has no args the first () can be dropped.
> If the return type can be inferred, that can be dropped.
> Nested functions can access vars in the outer function.
> 

Got it.Thanks a lot!


More information about the Digitalmars-d-learn mailing list