> in general, the capture in Nim captures the variable, not its value Thanks!
In the example, it's indeed need to declare it first within that scope but I didn't realize it before you mentioned Now it's even able to capture ptr object to change that objects fields value