Return value from a function

Blitz3D Forums/Blitz3D Beginners Area/Return value from a function

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.

Reference vars.. anyone ? I keep asking for it in 'suggest ideas' topics .. :) QBasic already had this.. basicly every var in a function call was a reference, unless you put a () around it .. so: bla((a),b,c) meant that b and c were references while a is not.

this update for blitz would be cool:
x=4
y=5
z=3
convert3d(x,y,z)

end

function convert3d(&x,&y,z)
  x=x/z
  y=y/z
end function