The initial version was expected. But then I tried example below, and it was 
not expected. Why `let j = i` didn't captured the current value of `i`?
    
    
    var fns: seq[proc(): void]
    
    for i in 0..1:
      let j = i
      fns.add proc = echo j
    
    for fn in fns: fn()
    
    
    Run

Reply via email to