Imitate Procedures/Methods in Blitz

Blitz3D Forums/Blitz3D Beginners Area/Imitate Procedures/Methods in Blitz

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.

Hi there, anyone familiar with Java or Pascal will know of Methods and Procedues and how one can pass in and retrieve more then one variable from them. Functions however can only 'return' a single variable which is somewhat of a limitation in certain circumstances.

Is there any other way to imitate methods or procedues in Blitz, I would like to send a function a few parameters, have them modified and receive more than one back again.

One solution I have thought of but not yet implemented due to it's long windedness is to concatenate all results in the function into a string, return that and then split it back up to retrieve all seperate values, but, is there any simpler way?