Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Nov 4, 2025

When reading the previous code, it was confusing to see calls to SvREADONLY_on, as without being aware the macro was redefined just above this function, the reader is unlikely to be aware that here it doesn't set the SVf_PROTECT flag.

We should instead define a custom-purpose macro here and use that, to make its operation much clearer.

  • This set of changes does not require a perldelta entry.

When reading the previous code, it was confusing to see calls to
`SvREADONLY_on`, as without being aware the macro was redefined just
above this function, the reader is unlikely to be aware that here it
doesn't set the SVf_PROTECT flag.

We should instead define a custom-purpose macro here and use that, to
make its operation much clearer.
@leonerd leonerd merged commit 7bcccf4 into Perl:blead Nov 6, 2025
34 checks 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