View Single Post
  #5  
Old 05-18-2005, 06:32 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
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.
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote