3 ms·
Procedures can appear at the top level in a module as well as inside other scopes, in which case they are called nested procs. A nested proc can access local va
by adrusi 12y ago
Procedures can appear at the top level in a module as well as inside other scopes, in which case they are called nested procs. A nested proc can access local variables from its enclosing scope and if it does so it becomes a closure.
From the manual: http://nim-lang.org/manual.html#closures http://nim-lang.org/manual.html#closures