Yue Posted May 19, 2019 Share Posted May 19, 2019 local numero = 300 function ImprimirNumero() System:Print( numero ) end ImprimirNumero() For some reason I expected the variable not to be accessible from inside the function. In the debugger I see the value of the variable, and I thought that since it was local that would be impossible, why do I have this behavior? Quote Link to comment Share on other sites More sharing options...
Solution Rick Posted May 19, 2019 Solution Share Posted May 19, 2019 It's local to the entire script, which means the entire script can see it. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.