Is this the correct way to pass array to function?

BlitzMax Forums/BlitzMax Beginners Area/Is this the correct way to pass array to function?

JBR(Posted 2010) [#1]
Hi, I'm only reading from the array. And I will have multiple arrays to process.

Global A_Array:Float[1024]
Global B_Array:Float[1024]
Global C_Array:Float[1024]

my_function( A_Array:Float )



function process( array:Float[] )

end function


Czar Flavius(Posted 2010) [#2]
Strict

Global myarray:Float[1024]

Function process(array:Float[])
	For Local i = 0 Until array.length
		Print array[i]
	Next
End Function


process(myarray)



JBR(Posted 2010) [#3]
Thanks