-
Notifications
You must be signed in to change notification settings - Fork 559
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
perlapi: Fold in gv_autoload4 to gv_autoload_pv group #22331
Conversation
In perl-5.40.0, when I say
Two questions: My admittedly naive reaction to seeing:
and
so closely juxtaposed is to think, "How can these be 'equivalent' when they have different 4th arguments?" Can you clarify? Then, the subject line of your pull request claims that "gv_autoload4 and gv_autoload_pvn are identical" -- i.e., not merely 'equivalent' but 'identical', which sounds like a much stronger claim. Can you clarify? Thanks. |
It's best to write documentation assuming the reader is more naive than not. Thanks for catching this. I missed this, and it isn't immediately obvious what is actually happening, so I'm looking at it now. |
8669f4f
to
ba5ee57
Compare
The previous documentation also did not mention what flags are looked at. I wnet throu`gh old commits and the source code to flesh out the pod; and the final parameter of autoload4 is very different than what I had said in the earlier form of this PR |
When I build this branch, say
Similarly, I find Am I misunderstanding what (Note that I'm trying to review your p.r.s more for the form in which they finally appear when called with |
Our documentation is very imperfect, as in almost all products. At least we are volunteers. I could rant about how documentation is under-appreciated by management almost everywhere. For these flag bits, someone could write an entry (patches welcome!), but failing that, having the bit mentioned in the places that look at it is likely adequate, if not ideal. I added the |
That revision to autodoc.pl sounds like a big project. Perhaps that could be created as an Issue which someone else (a newcomer!) could take on. In the meantime, I'll just keep doing a basic review of your pull requests. Thanks! |
gv.c
Outdated
The only other significant value in C<flags> currently is C<GV_SUPER> | ||
to indicate, if set, to additionally search for the name in stashes accessible | ||
via C<@ISA>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect per my comment in #22329, GV_SUPER means to skip searching the specified stash (see perl5180delta)
And correct some of the misleading documentation previously there
ba5ee57
to
7bccb3b
Compare
And correct some of the misleading documentation previously there