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.