Multiple Returns?

BlitzMax Forums/BlitzMax Programming/Multiple Returns?

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.

Thanks for that Robert I didn't know you could use var to return more than one value.
Distinction: VAR does not allow you to return more than one value. Rather, var allows you to return no values at all, but be able to directly manipulate the variables passed.

This is known as passing by reference (as opposed to passing by value, which protects the original data from corruption).