Serp
King
- Joined
- Apr 1, 2015
- Messages
- 661
What would be the print result of the following code?
If Lua is executed in row, the print result would be 3.
If not... I think no one would know the answer and it could be 1,2 or 3 by random
So anyone knows if it is in row or simultan?
edit
I ask, because it is important for my scripts and I can't imagine it is in row, since there are so many functions combinated and it has to be fast... I think in row it would be slow.
Code:
test = 1
function Testfunc()
Changevalue1()
print(test)
end
function Changevalue1()
test = 2
Changevalue2()
end
function Changevalue2()
test = 3
end
Testfunc()
If Lua is executed in row, the print result would be 3.
If not... I think no one would know the answer and it could be 1,2 or 3 by random
So anyone knows if it is in row or simultan?
edit
I ask, because it is important for my scripts and I can't imagine it is in row, since there are so many functions combinated and it has to be fast... I think in row it would be slow.