You can use `ptr T` instead of `var T` then, but beware, it's unsafe. It's 
better to do this instead:
    
    
    proc outer(x: var string) =
      proc inner(x: var string) =
        x.add "abc"
      inner(x)
    
    var g = "x"
    outer(g)
    echo g
    
    
    Run

Reply via email to