-
Notifications
You must be signed in to change notification settings - Fork 54
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
Values referenced after a recursive call get overwritten #1032
Labels
Bug
The observed behaviour is incorrect or unexpected.
C-Project
A larger project, more suitable for experienced contributors.
G-CESK machine
This issue has to do with the CESK machine (the Swarm language interpreter).
S-Moderate
The fix or feature would substantially improve user experience.
Z-User Experience
This issue seeks to make the game more enjoyable to play.
Comments
@kostmo a workaround is to pass the variable that is being overwritten after the recursive call:
|
@kostmo better workaround: use a let binding
@byorgey when I tried the example code by @kostmo right now, it did repeat the last value. Maybe we have a different version or @kostmo made a typo. 🙂
|
kostmo
added a commit
that referenced
this issue
Jul 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
The observed behaviour is incorrect or unexpected.
C-Project
A larger project, more suitable for experienced contributors.
G-CESK machine
This issue has to do with the CESK machine (the Swarm language interpreter).
S-Moderate
The fix or feature would substantially improve user experience.
Z-User Experience
This issue seeks to make the game more enjoyable to play.
Describe the bug
The following program produces unexpected output in the log:
Output in log:
The text was updated successfully, but these errors were encountered: