Imitate Procedures/Methods in Blitz

Blitz3D Forums/Blitz3D Beginners Area/Imitate Procedures/Methods in Blitz

Something like this?

Type TCoord
	Field x,y
End Type



example.TCoord=ExampleFunc(2,10)

Print example\x
Print example\y


Function ExampleFunc.TCoord(x,y)
	e.TCoord=New TCoord
	e\x=x
	e\y=y
	Return e
End Function