Pass Operators to Constructors

BlitzMax Forums/BlitzMax Programming/Pass Operators to Constructors

You'd use a function in the type as methods only work on the current instance.

Function Create:TMyType(X:Float, Y:float)
  Local mt:TMyType=New TMyType
<stuff>
  Return mt
End Function