Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subroutines with local variables #54

Open
SteveB69 opened this issue Feb 16, 2022 · 0 comments
Open

Subroutines with local variables #54

SteveB69 opened this issue Feb 16, 2022 · 0 comments

Comments

@SteveB69
Copy link

SteveB69 commented Feb 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants