fix(regex): publish MARK state to exact packages - #1051
Draft
fglock wants to merge 3 commits into
Draft
Conversation
Preserve the JVM-complete MARK shorthand and exact-package publication delta before changing the interpreter match-package mechanism. Standard Perl and JVM pass 53/53; the interpreter currently passes 45/53. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Encode the lexical package on MATCH_REGEX and MATCH_REGEX_NOT bytecodes and scope InterpreterState.currentPackage around runtime matching. This gives MARK and REGERROR an exact executing-package owner while preserving callback lexical package overrides and nested-match restoration. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Apply the existing cross-package our-alias refresh to list declarations as well as scalar declarations. Later bare reads now resolve to the package of the most recent lexical our declaration instead of the preceding package. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
(*:NAME)MARK shorthand$REGMARKand$REGERRORto the exact executing packageouraliases when a later declaration changes packageValidation
make: passed in 2m54s after the final alias correctionStack
This draft is based on the pre-fallback PR #1042 checkpoint and will be rebased
onto the final strict-parity PR #1042 head before review. The first commit is an
intentional recovery snapshot created under the dirty-tree safety protocol;
history can be polished after the integration base stabilizes.
Generated with Codex