Here is what I am wondering
I have this situation:
If I destroy the group g in ab, will this destroy w in something?
So generally my question is how are parameter variables handled
To go even further: if I use "set b=2" in ab(yes that is possible) will this set the value of a in something to 2?
P.s. The second thing is kinda easy to test, but I am going to bed, so if anyone knows, please say, but do not trouble yourself by testing it for me.
I have this situation:
JASS:
function ab takes group g integer b returns nothing
//some irrelevant code
endfunction
function something takes nothing returns nothing
local group w = CreateGroup()
local integer a = 0
call ab(w,a)
set w=null
endfunction
If I destroy the group g in ab, will this destroy w in something?
So generally my question is how are parameter variables handled
To go even further: if I use "set b=2" in ab(yes that is possible) will this set the value of a in something to 2?
P.s. The second thing is kinda easy to test, but I am going to bed, so if anyone knows, please say, but do not trouble yourself by testing it for me.