Creation methods?

BlitzMax Forums/BlitzMax Programming/Creation methods?

And, if you need arguments in the constructor (the creation method), you can sortof wrap it like so:

Type Thing
  Function Create:Thing( argA%, so%, on%, n%, so%, forth% )
    Local t:Thing = New Thing
      ' Do stuff with the parameters passed
    Return t
  End Function
End Type


This was also mentioned by Lazarou (since he ain't my papa).