-
Notifications
You must be signed in to change notification settings - Fork 602
Implement fatalization of import/unimport method with argument #23992
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
base: blead
Are you sure you want to change the base?
Conversation
293bc6e to
0cacab8
Compare
|
Besides the test failure it should update |
Yes, but this was intended just as a first draft, enough to get us something to test against CPAN. We'll add the perldelta later. Thanks. |
|
Here is my research the failure in
However, in March 2022, @leonerd extended the scope of In July 2023 @demerphq added In April 2024 @tonycoz added I do not have enough understanding of the guts to say what an |
|
If I re-enable |
Y'know, I must have stared at that 20 times without realizing the difference in case of one letter was the problem! Thanks, Tony. |
2be6c95 to
cb97d80
Compare
This commit is mostly a manual reversion of commit f1cf82e. Return to using a perl_croak in universal.c; adjust regen/warnings.pl as needed; run 'make regen'; get t/op/universal.t passing. No documentation changes yet. Add test for undefined unimport method, then refactor repeated code into a subroutine. Perform a pattern match rather than a string equality test because testing for exact line numbers inside a test program is too fragile for maintenance purposes. 'mispelled' was misspelled in one location; correct. Suppress 'used only once' warning in one location. POD formatting improvements as suggested by Elvin Aslanov, with one other word change. Correct case of one character in error message so that it's the same in both universal.c and pod/perldiag.pod. This enables us to preserve status of universal.c in t/porting/diag.t. Per: Tony Cook review. For: GH Perl#23623
cb97d80 to
2866e64
Compare
|
I have squashed all commits written so far in this branch into a single commit. No documentation changes yet. |
This commit is mostly a manual reversion of commit f1cf82e. Return to a perl_croak in universal.c; adjust regen/warnings.pl as needed; run 'make regen'; get t/op/universal.t passing. No documentation changes yet.
Add test for undefined unimport method, then refactor repeated code into a subroutine. Perform a pattern match rather than a string equality test because testing for exact line numbers inside a test program too fragile for maintenance purposes.
Still one porting test failure.
This should be considered a first draft of a pull request to implement GH #23623.
I believe I have implemented the "ask" of GH #23623, but there is one test failure in
t/porting/diag.tI have not yet been able to resolve. Int/op/universal.tI have written tests to match the message emitted by the newly fatalizedimportandunimportcases inuniversal.c, but I have not yet been able to gett/porting/diag.tto recognize that that exception message is indeed documented inpod/perldiag.pod.Suggestions welcome.
I have not yet made any attempt to estimate the impact of this code change on code on CPAN or out in the wild. If anyone wants to work with me on that, please contact me.
NOTE: Other things being equal, I would prefer to see the pull request for goto-partial-fatal, GH #23782, prioritized for review and merging.
Will need a perldelta entry.
@haarg