Forward reference to nested function not allowed?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 31 09:29:45 PDT 2014


On Saturday, 31 May 2014 at 16:18:35 UTC, DLearner wrote:
> Is this intended?

Yes, nested functions access local variables and thus follow the 
same order of declaration rules as they do; you can't use a local 
variable before it is declared so same with a nested function.


More information about the Digitalmars-d-learn mailing list