Function overloading

BlitzMax Forums/BlitzMax Programming/Function overloading

Overloading return types I'm not sure I would need, but overloading parameters is a definite thumbs up for me.

Along with read and write methods for fields like object pascal has.

something like:

Type myType
	
	Field name:String Read getName write setName
	
	Method getName()
		return name
	End Method
	
	Method setName(value:String)
		If value.contains("trainers") Then
			RuntimeError("Sorry, no trainers allowed")
		Else
			Name = value
		EndIf
	End Method
	
End Type