Skip to content

sv.h - Update type comments to reflect implementation realities #20787

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

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

richardleach
Copy link
Contributor

Closes #20698

sv.h Outdated
be a rare use case.) C<SVt_PV> can hold C<undef>, a string, or a reference.
C<SVt_PVIV> is a superset of C<SVt_PV> and C<SVt_IV>. C<SVt_PVNV> is similar.
C<SVt_PVMG> can hold anything C<SVt_PVNV> can hold, but it can, but does not
have to, be blessed or magical.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last two sentences read a little bit awkward. Maybe:

C<SVt_PVNV> is similar as it is a superset of C<SVt_PV> and C<SVt_NV>. C<SVt_PVMG> can hold anything that a C<SVt_PVNV> can, but may also be blessed or magical as well.

im not sure that "hold" is the best word for this doc, but its not the worst either. I think id use "represent" or "store" but its a matter of preference I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are both the pre-existing text, but I'm happy to make changes.

@richardleach richardleach merged commit 2ba5f4d into Perl:blead Feb 10, 2023
@richardleach richardleach deleted the hydahy/svhcomments branch February 10, 2023 21:57
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.

sv.h: outdated comment block re: what each SV type can store
3 participants