methods or functions?

BlitzMax Forums/BlitzMax Programming/methods or functions?

variables are not passed as reference, put Var after to make them references:
local a = 42
local b = 10
print a
print b
test(a,b)
print a
print b

function test( a, b Var )
    a = 1024
    b = 768
endfunction