-
Notifications
You must be signed in to change notification settings - Fork 128
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
Fix dereference behavior on mixed subscript and arrow / dot operators #182
base: master
Are you sure you want to change the base?
Conversation
a939ffb
to
4b1627c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify the use of "deference" and "dereference" in the wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice that the title of this pull request still uses "deference" in the wording. Fixing it to "dereference" is better and prevents misunderstandings.
Additionally, the git commit title is Fix incorrect deref behavior
, and I believe it could be improved with a clearer summary.
Previously, using subscript operator (literally "[]") with arrow operator (literally "->") or dot operator (literally ".") would cause incorrect dereference result due to inappropriate delayed dereference strategy. In this patch, by adding dereference instruction when encountered subscript operator and under correct circumstances fixes the issue.
Summary by Bito
This pull request resolves a double free error in the globals file and enhances type safety in the parser by changing variable types from int to bool. It also introduces new tests for dynamic data structures, improving the codebase's safety and robustness while addressing issues #165, #181, and #164.Unit tests added: True
Estimated effort to review (1-5, lower is better): 2