Skip to content

Fix: patch lexical scoping for __builtin_reset.#10

Merged
AliAlmutawaJr merged 1 commit into
AliAlmutawaJr:mainfrom
DrkWithT:main
Apr 28, 2026
Merged

Fix: patch lexical scoping for __builtin_reset.#10
AliAlmutawaJr merged 1 commit into
AliAlmutawaJr:mainfrom
DrkWithT:main

Conversation

@DrkWithT
Copy link
Copy Markdown
Contributor

@DrkWithT DrkWithT commented Apr 28, 2026

Purpose: Patch dynamic scoping bug for __builtin_reset for later.

Changes:

  • Ignore Pie snippets from Git, .gitignore updated with *.pie
  • Patch removeVar in Interpreter.ixx, deletes the most recent binding of a name a la dynamic scoping.
  • Added positive and negative test cases in Test.cc.

Let me know if there's more I can check out. Thanks 😄

@AliAlmutawaJr
Copy link
Copy Markdown
Owner

Very good eye you got there. The builtin reset is a good fix. Thank you very much for your contribution!

@AliAlmutawaJr AliAlmutawaJr merged commit 1b220ac into AliAlmutawaJr:main Apr 28, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants