Function overloading

BlitzMax Forums/BlitzMax Programming/Function overloading

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.

you could turn it into the following if you are worried because of the unused string:

Type myType
Field _name:String

	Method name:String(value:String=Null)
		Local result:String = _name
		If value 
			_name = value
			return null
		endif
		Return result
	End Method
	
End Type


this would return null whenever you use it as setter