develooper Front page | perl.perl5.porters | Postings from September 2011

HvNAME vs HvNAME_get

Thread Next
Father Chrysostomos
September 18, 2011 17:13
HvNAME vs HvNAME_get
Message ID:
HvNAME used to be an lvalue.

Between 5.8 and 5.10, HvNAME_get (an rvalue version) was added, as it was faster than HvNAME.  The core was changed throughout to use HvNAME_get.  But later, HvNAME was redefined in terms of HvNAME_get.

So the HvNAME_get form is redundant.

When I added HvENAME_get, I noticed only afterwards that HvNAME was part of the API, so I added HvENAME to copy it.

I would like to eliminate the _get forms if possible.

Is HvNAME_get (and HvNAMELEN_get and HvENAME_get) used on CPAN? seems to be down most of the time I try to use it.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About