develooper Front page | perl.perl5.porters | Postings from November 2009

Re: bareword sub lookups

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
November 8, 2009 06:35
Subject:
Re: bareword sub lookups
Message ID:
b77c1dce0911080635j60e3d7eepeab3b669cfe94c8c@mail.gmail.com
2009/11/7 Zefram <zefram@fysh.org>:
> Nicholas and I have discussed the patch that I posted 11 days ago
> regarding overridability of bareword sub lookups.  We're both in two minds
> regarding the real value of the part of the const-sub space optimisation
> that the patch lost.  I've worked out a feasible way to regain that
> optimisation: downgrade a GV to the placeholder format, when a GV op is
> being discarded and the substitution is safe.  This takes only a small
> amount of code, and is much simpler and safer than the op-based schemes
> that I described earlier.  Nicholas said he'd be satisfied with this
> sort of arrangement.
>
> The attached patch is the resulting revised version of the bareword
> sub patch.  (For clarity: Nicholas has not yet reviewed this code.)
> It incorporates the original patch (allowing rv2cv op hookers to control
> prototype processing), the GV-downgrading addition, and a mention in
> perldelta.  All core tests pass, including in particular the unmodified
> form of the t/op/gv.t tests for the const-sub space optimisation.

Thanks, applied to bleadperl as f7461760003db2ce68155c97ea6c1658e96fcd27.

Thread Previous | 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