Charapanga
New Member
- Reaction score
- 46
scope A
globals
public group G = CreateGroup()
private timer T = CreateTimer()
private constant integer BUFF_ID = 039;B000039;
endglobals
endscope
scope B
globals
public group G = CreateGroup()
private group G2 = CreateGroup()
private timer T = CreateTimer()
private constant integer BUFF_ID = 039;B001039;
endglobals
endscope
Notice how both libraries have private globals and functions with the same names, this wouldn't cause any syntax errors since the private preprocessor will make sure that private members are only available for that scope and don't conflict with things named the same present in other scopes. In this case private members are only to be used by the libraries in which they are declared.
scope Test
globals
private integer PrivateInteger
endglobals
endscope
globals
integer Test_RandomPrefix_PrivateInteger
//From what I recall, the RandomPrefix is a random 5 (or 6) digit number, according to the Grimoire error messages
endglobals