examples of arrays as return type.

BlitzMax Forums/BlitzMax Programming/examples of arrays as return type.

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.

ok. Now tell me why this isnt working
I get a compile error: Compile Error: Expecting function type

Function p:Int[2] (x:Int, y:Int) 
	Local a:Int[2] =[x, y] 
	Return a
End Function

Local int_array:Int[2] 
int_array = p(5, 6) 

Print int_array[0]