proc func1(a) a += 2 endproc proc func2 local x x = 1 func1(x) // at this point local x == 3 ? "p2 x=%d":x endproc define var a x a = 5 x = 7 func2() ? "p1 a=%d":a ? "p1 x=%d":x executing this section of code will print p2 x=3 p1 a=5 p1 x=7
proc func1(a) a += 2 endproc proc func2 local x x = 1 func1(x) // at this point local x == 3 ? "p2 x=%d":x endproc define var a x a = 5 x = 7 func2() ? "p1 a=%d":a ? "p1 x=%d":x
executing this section of code will print
p2 x=3 p1 a=5 p1 x=7