fastbasic icon indicating copy to clipboard operation
fastbasic copied to clipboard

Subroutines with local variables

Open SteveB69 opened this issue 3 years ago • 0 comments

Hi,

would it be possible to create some kind of local variables for subroutines?

In order to write new games for the Atari I would first create some generic routines, which should not depend on global variables and, most important, not accidently change the value of global variables. Just think of the magic "i" variable used for every other loop.

Therefore it would also be helpful to have the valued returned to the caller when a parameter is changed in the subroutine, i.e. call by value/result or call be reference.

Thank you Steve

SteveB69 avatar Feb 16 '22 21:02 SteveB69