Skip to content
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

Do not set loaded booleans to readonly for perl >= v5.36 #118

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

perlpunk
Copy link
Collaborator

@perlpunk perlpunk commented Sep 6, 2024

Since perl 5.36, PL_sv_yes/PL_sv_no will be preserved as booleans
automatically. If we create them with newSVsv(), they are not readonly
anymore and will still roundtrip.

@perlpunk perlpunk force-pushed the load-builtin-bools branch 3 times, most recently from 89707fe to bf67fac Compare September 7, 2024 20:16
@perlpunk perlpunk marked this pull request as ready for review September 7, 2024 20:17
@perlpunk perlpunk changed the title Support loading builtin booleans Do not set losaded booleans to readonly for perl >= v5.36 Sep 7, 2024
@perlpunk perlpunk changed the title Do not set losaded booleans to readonly for perl >= v5.36 Do not set loaded booleans to readonly for perl >= v5.36 Sep 7, 2024
Since perl 5.36, PL_sv_yes/PL_sv_no will be preserved as booleans
automatically. If we create them with newSVsv(), they are not readonly
anymore and will still roundtrip.

Also add a cleanup in t/file.t
@perlpunk perlpunk merged commit 44aa92f into ingydotnet:master Sep 20, 2024
17 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