Passing and returning arrays

BlitzMax Forums/BlitzMax Programming/Passing and returning 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.

some test code that shows arrays ARE passed as var (of course). Interestingly the compiler lets you redundantly write var after the array in the function parameters...

Strict
Local test$[2]

test[0] = "hello"

fiddle(test)

Print test[0]

Function fiddle(in$[])
	in[0] = "goodbye"
End Function