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

Implement local #108

Open
snoopyjc opened this issue Dec 22, 2021 · 2 comments
Open

Implement local #108

snoopyjc opened this issue Dec 22, 2021 · 2 comments

Comments

@snoopyjc
Copy link

snoopyjc commented Dec 22, 2021

Implement local. Per the documentation, local actually defines a global variable, pushes the current value on a stack and makes a new value during the execution of this block. Once the block is done, the old value is popped back off the stack. This way if you call a function, the new value is available to that function. Some code uses local *var, which declares $var, @var, %var, &var, and var all local at the same time.

@snoopyjc
Copy link
Author

Can implement with a global stack variable, and try: / finally:

@snoopyjc
Copy link
Author

Fixed in 0.934: https://github.com/snoopyjc/pythonizer

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

No branches or pull requests

1 participant