Null default float parameters?

BlitzMax Forums/BlitzMax Programming/Null default float parameters?

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.

0.0/0.0 could be used.

Function Vec3:TVec3(x#=0.0,y#=0.0/0.0,z#=0.0/0.0)
	Local t:TVec2=New TVec2
	If IsNan(y) y=x
	If IsNan(z) z=y
	t.x=x
	t.y=y
	t.z=z
	Return t
EndFunction