Creation methods?

BlitzMax Forums/BlitzMax Programming/Creation methods?

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.

Here is a variation:
Type tthing
	Field x,y
	
	Method Create:tthing(x)
		Self.x = x
		Return Self
	End Method
	
End Type
	 
Local t:tthing = New tthing.Create(40)
Print t.x