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
- What does "cannot be captured as it would violate memory safe... marks
- Re: What does "cannot be captured as it would violate me... mratsim
- Re: What does "cannot be captured as it would violat... marks
- Re: What does "cannot be captured as it would vi... Araq
