@Clonk Thanks for the pointer to the closure section in the manual. As of now, 
I have been a Nim user for the whole 3 days and have not read the manual in its 
entirety yet :-)

Closure syntax in `sugar` module is interesting. But my question is about 
semantics. I am creating closures from within a `block` scope and make them 
accessible on the top level. Within the `block` an environment encapsulates 
some global state that is only accessible via these closures. I effectively 
"export" inner-scope closures to the top level.

\--Leo|   
---|---

Reply via email to