Skip to content

Conversation

tonycoz
Copy link
Contributor

@tonycoz tonycoz commented Apr 17, 2023

reset() with an argument would clear the specified SVs when requested but didn't call set magic, this would result in the effect on magic variables not applying, such as the $| and $^W used in the ticket.

This isn't a problem for AVs and HVs as their corresponding clear functions do call the appropriate clear magic.

Fixes #20763

reset() with an argument would clear the specified SVs when requested
but didn't call set magic, this would result in the effect on magic
variables not applying, such as the $| and $^W used in the ticket.

This isn't a problem for AVs and HVs as their corresponding clear
functions do call the appropriate clear magic.

Fixes Perl#20763
@tonycoz tonycoz added the defer-next-dev This PR should not be merged yet, but await the next development cycle label Apr 19, 2023
@tonycoz
Copy link
Contributor Author

tonycoz commented Apr 19, 2023

This may$^1$ cause extra warnings or runtime errors, which I'm not inclined to introduce at this point, so I don't expect to apply it until the next dev cycle

$^1$ assuming anyone uses reset with arguments.

@tonycoz tonycoz merged commit 576cb40 into Perl:blead Jul 4, 2023
@tonycoz tonycoz removed the defer-next-dev This PR should not be merged yet, but await the next development cycle label Aug 22, 2023
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.

reset() silently fails to reset some variables like $1, $^W

1 participant