Originally Posted by myrroddin
The full implementation of Lua might, I don't know, and haven't checked. However, in WoW, we do not get the full Lua implementation. As one example, we have no access to i/o for obvious security reasons.
It might help to know what you are trying to accomplish.
|
Ah... I see...
Thanks for letting me know!
Originally Posted by Rilgamon
do-end-blocks create a scope, too. This way you can change the outer testVar.
Lua Code:
function testFunc() do local testVar = testVar; print(testVar); end testVar = 2; end
|
damn! didn't even think of using do-end within a function lel!
Originally Posted by Seerah
|
Yeah, I've already read the document, but it still didn't ease my curiosity whether you could still change the value of outer one even if you declare the same named variable within a function (or loops, do-end, etc.) or not