' passing arrays
dim c(10)
dim d(10)
sub test(a(),by())
'do stuff
end sub
test c(),d() 'this looks like a bug - must have a space after the first comma or get syntax error
wlog "Done"
end
There needs to be a space between the sub name and the parantheses.
Otherwise the interpreter thinks it's an array name and throws a syntax error. (or not if the array is valid)
This has caught me out in the past. Not sure if it's something that can be fixed.
Name (N) is a sub with parameter N
Name(N) is an array with element N