Little help with include
#4

I just noticed that I always used the version of 2007 from pawn-lang.pdf ^^"

Also to speed this up

Quote:
Originally Posted by 34
Notice how the two global variables stack and stackidx are declared as "static" variables; using the keyword static instead of new. Doing this makes the global variables "visible" in that file only. For all other files in a larger project, the symbols stack and stackidx are invisible and they cannot (accidentally) modify the variables. It also allows the other modules to declare their own private variables with these names, so it avoids name clashing.
Quote:
Originally Posted by 63
Static global declarations

A static global variable behaves the same as a normal global variable, except that its scope is restricted to the file that the declaration resides in. To declare a global variable as static, replace the keyword new by static.
Reply


Messages In This Thread
Little help with include - by FireCat - 27.05.2012, 10:41
Re: Little help with include - by FireCat - 27.05.2012, 10:51
Re: Little help with include - by FireCat - 27.05.2012, 11:02
AW: Little help with include - by Nero_3D - 27.05.2012, 11:07
****** - by FireCat - 27.05.2012, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)