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

for(lvalue_sub()) returning read-only items

From:
Father Chrysostomos
Date:
June 12, 2011 14:53
Subject:
for(lvalue_sub()) returning read-only items
Message ID:
CF24CFCB-6FF5-416E-9283-331AEE16ED16@cpan.org
Currently pp_leavesublv copies any read-only items returned by an lvalue sub if it is called within for(...) or within a subroutine’s arguments. Since one of the purposes of lvalue subs is for the caller to be able to reference the actual scalar returned, it makes sense to me to stop it from doing this. Is there any reason I should not?




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