develooper Front page | perl.perl5.porters | Postings from January 2010

[perl #72108] gv_e?fullname[34] improvement

Thread Next
From:
Nicholas Clark
Date:
January 15, 2010 18:55
Subject:
[perl #72108] gv_e?fullname[34] improvement
Message ID:
rt-3.6.HEAD-1505-1263574002-821.72108-75-0@perl.org
# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #72108]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72108 >


It seems that a fairly common pairing in the perl source is:

	    tmpsv = newSV(0);
	    gv_efullname3(tmpsv, gv, NULL);

or generating a new mortal and passing it in.

All functions in the gv_e?fullname{,3,4} family are ultimately wrappers
around gv_fullname4(), which currently returns void, and takes a not NULL
first argument.

It would probably reduce the core's code size to change it to return SV *,
and generate a new SV (possibly mortal) if the first argument is NULL.

Nicholas Clark


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About