Yes. But if it is your "workabouts" (you say about)-it is unexpected and non intuitive for me (and as i see for the @trisub, and @alexeypetrushin) , more over i wonder if its properly covered in the Nim manuals. Yet of course I may not percept Nim good enough for it. But my example is about another thing. In the example explicitly declared in the closures scope variable p should be captured by value and it does not so. But i'm confused by another thing - it takes the value (at the closure running) from the variable i, that is not exist at the time by all means - and that is what i mean using word "inconsistency".
- Closures inside loops without capturing loop variable? xigoi
- Closures inside loops without capturing loop variable... xigoi
- Closures inside loops without capturing loop vari... trisub
- Closures inside loops without capturing loop ... alexeypetrushin
- Closures inside loops without capturing l... Randy
- Closures inside loops without captur... trisub
- Closures inside loops without ca... Araq
- Closures inside loops without ca... DIzer
- Closures inside loops without ca... DIzer
- Closures inside loops without ca... Araq
- Closures inside loops without ca... DIzer
- Closures inside loops without ca... alexeypetrushin
- Closures inside loops without ca... planetis
- Closures inside loops without ca... DIzer
- Closures inside loops without ca... DIzer
- Closures inside loops without ca... Araq