-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add NEWS.md entry for macro hygiene fix #21820
Conversation
NEWS.md
Outdated
@@ -220,6 +220,9 @@ This section lists changes that do not have deprecation warnings. | |||
`airybiprimex`, `airyaix`, `airybix`, `airyaiprimex`, `airybiprimex`) | |||
([#18050]). | |||
|
|||
* When a macro is called in the module in which that macro is defined, global variables | |||
in the macro are now correctly resolved in the macro definition environment ([#15850]). |
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.
since this was so breaking, we should mention what the symptoms and fix look like - usually undefined variable errors that didn't occur in 0.5, and a few more calls to esc
, respectively
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.
Good call! How does the present iteration look? Roughly what you had in mind, or had you something else / additional in mind? Thanks!
in the macro are now correctly resolved in the macro definition environment. Breakage | ||
from this change commonly manifests as undefined variable errors that do not occur | ||
under 0.5. Fixing such breakage typically requires sprinkling additional `esc`s in | ||
the offending macro ([#15850]). |
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.
❤️
Clears #15850 from #21475 (comment). (Well, hopefully --- someone properly familiar with the macro hygiene fix in #15850 should check this news entry's wording!). Best!