functions returning blitzarrays

Blitz3D Forums/Blitz3D Beginners Area/functions returning blitzarrays

hi,

can somebody tell me how to return a blitzarray with a function? declaring a function like this:

Function func[10](x,y,z)


does not work. and using a type to return a blitzarray like this:

Type something
	Field array[10] 
End Type

Function func.something(x,y,z)
	Local dummy.something = New something
	dummy\array[0]=x+y+z

	Return dummy
End Function


does work, but keeps filling your memory with new something types (eventho you declare them as local so they should be forgotten when the code leaves the function (or do i make a mistake here?)).

thanks,
hessel