• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Are Scope Globals MUI/MPI?

Status
Not open for further replies.
Level 12
Joined
Apr 27, 2008
Messages
1,228
Global variables in scopes are just global variables.
Only difference with normal global variables is that those in scopes can be public or private.
JASS:
scope a initializer b
globals
integer q
public integer w
private integer e
endglobals
function b takes nothing returns nothing
set q=5
set w=10
set e=15
endfunction
endscope

JASS:
//some other scope or something
function blah takes something returns something
set q=6
set a.w=7
set a.e=8 //wont work
endfunction
 
Status
Not open for further replies.
Top