Hi All,
Two questions, of which a yes to the first could invalidate the second.
1) Are arrays global by default? I.e. is the following code redundant?
global dim myArray[2] as integer
2) If not, what's the syntax for passing an array as a function parameter should the need arise? Apparently the compiler complains when I tried the following logical guess at it:
dim myArray[2] as integer
do
myArray[0] = 0
myArray[1] = 1
Array_Pass_Test(myArray[])
Print("Array Pass Successful")
Sync()
loop
function Array_Pass_Test(passedArray[] as integer)
endfunction
"...The Protoss do not run from their enemies. Aiur is our homeworld, it is here that we shall make our stand!" -Aldaris