This code: ```nim proc test = var idx {.global.} = 0 echo idx idx += 1 test() test() ``` gives different results depending on how to execute it: ``` # nim e test.nim 0 0 ``` ``` # nim r test.nim 0 1 ``` Tested on 1.6.2 and latest git revision.