Multi types and functions

Blitz3D Forums/Blitz3D Programming/Multi types and functions

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.

Thanks for the idea. After a little thought I've found the most straight-forward approach is not to return an object at all, but pass the target in the parameters, so
Function create_Box.ODE_object(x_pos, y_pos, z_pos, width, length, depth, x_rot, y_rot, z_rot)
	obj.ODE_object = New ODE_object
	obj\mat.material = New material
	blah blah
	Return obj
End Function
becomes
Function create_Box(obj.ODE_object, x_pos, y_pos, z_pos, width, length, depth, x_rot, y_rot, z_rot)
	obj\mat.material = New material
	blah blah
End Function
I think I'm too 'classically trained' to automatically work with Blitz's ways!