global arrays

BlitzMax Forums/BlitzMax Beginners Area/global arrays

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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