By Reference

BlitzMax Forums/BlitzMax Programming/By Reference

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.

hmmmm
var does work for "by reference"
Local x:Float = 20

For Local i:Int = 0 To 10
	inc(x)
	Print i+"> "+x
Next

Function inc( i:Float Var )
	i:+1
End Function