Intro to OO

BlitzMax Forums/BlitzMax Tutorials/Intro to OO

Yes, self can be omitted in normal cases like that.

However look at what this example does:
Type Rocket

	Field fuel = 10

	Method setFuel(fuel)
		Self.fuel=fuel ' (the fuel field of this instance of Rocket) = (the fuel parameter passed to the setFuel method)
	End Method

End Type