global arrays

BlitzMax Forums/BlitzMax Beginners Area/global arrays

JBR(Posted 2005) [#1]
Hi,

I declare a Global array:Byte[1000] at the start.

I want to use it in a few functions.

In the functions can I set a variable to array as local for speedier execution.

function hi()
local array_ref:Byte Ptr = array
.....
array_ref[0] = 234
.....
end function

Is this advisable?
Marg