I don't think Var was a good idea.

BlitzMax Forums/BlitzMax Programming/I don't think Var was a good idea.

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.

Well from my point of view Var it's very usefull.
Very often you don't wand the inputs in the functions to get changed and sometimes you wand them to change Var gives you this choice.
Example :
Local number:Int = 1

Function getDouble:Int( number:Int)
	Return number*2
End Function

Function setDouble(number:Int Var)
	number:*2
End Function


Print number
Print getDouble( number )
Print number
setDouble( number )
Print number

What confused me was that the user types takes all the changes without Var.