Quote:
|
Originally Posted by Stefan
You mean temp. variables ?
In new Graal script variables are by default global (like in old scripting engine on clientside), and you can limit the scope by putting this., player., server., temp. etc. in front.
|
Well, I don't know how temp. vars act, but I was talking about variables that won't exist in (as example) a function called by the function, like
function foo() {
foovar = "hello";
bar();
}
Now function bar shouldn't have access to foovar, yet it does and it is one big source for errors.
Like when you use some function someone else made, and it changes a variable you use in your function that calls this 3rd party function.
EDIT: A-hah, so temp. vars replace them

Well, that answers my question, thanks very much.