-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
stack implementation #12
Labels
question
Further information is requested
Comments
Stacks are almost universally implemented in that fashion: |
the link you provided says: stack is LIFO, but it is implemented as FIFO in go.vm |
Sorry, you're absolutely right. That is broken. I guess it would become an issue if there were nested |
skx
added a commit
that referenced
this issue
May 26, 2022
Stacks should be implemented as LIFO, but ours was accidentally FIFO which is very wrong. This would have caused nested-calls to be handled badly. Fixed implementation, added test-cases, and now this closes #12.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm just curious, that is,
why is the stack implemented as fisrt-in-first-out style? is there any special consideration?
The text was updated successfully, but these errors were encountered: