idea for the next blitz3d update: function(array)

Blitz3D Forums/Blitz3D Programming/idea for the next blitz3d update: function(array)

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.

I understand what you mean, but in blitz you dont need to do that because all arrays must be global anyway. so you you can access them directly from any part of your program. Having said that, you _could_ encapsulate the array inside a type and then pass the type to the function.

type myArray
field values[10]
end type

although you can only have a single dimension in the array within a type and as with all arrays in blitz the array size must be constant. no REDIM allowed :(

ReDim would be more useful IMHO allowing us to re-size arrays at run time.