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
*pvs SV functions don't take "const char*"s #12684
Comments
From @bulk88Created by @bulk88perlapi shows prototypes to the *pvs family of functions, like newSVpvs SV* newSVpvs(const char* s) another example is sv_setpvs void sv_setpvs(SV* sv, const char* s) The 2 quotes are from 2 different pod viewers. The description says "literal string", but the prototype makes you think One idea I have is SV* newSVpvs("literal string") Overall, the *pvs functions POD are just unclear to someone new. Perl Info
|
From zefram@fysh.orgI concur that the use of a "const char *" type for these parameters SV** hv_fetchs(HV* tb, "literal string" key, I also removed the inaccurate words "NUL-terminated" from the prose -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @xsawyerxOn 11/12/2017 07:10 AM, Zefram wrote:
I think it would be good to have it say what "literal string" refers to, |
From zefram@fysh.orgSawyer X wrote:
It does. The prose of that very perlapi entry says Like "hv_fetch", but takes a literal string instead of a This ticket started by considering someone who glances at the prototype -zefram |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#116286 (status was 'resolved')
Searchable as RT116286$
The text was updated successfully, but these errors were encountered: