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

Re: waiting for sub body

Thread Previous
From:
Rafael Garcia-Suarez
Date:
September 6, 2009 08:35
Subject:
Re: waiting for sub body
Message ID:
b77c1dce0909060835k168d33dbn3d6451ae61fea0a1@mail.gmail.com
2009/9/3 Zefram <zefram@fysh.org>:
> rgs pointed out to me that attribute handlers being applied to a temporary
> CV has actually been reported as a bug, #66970.  The attached patch fixes
> the bug, by changing the order in which things happen: attributes are
> now applied after the temporary CV has been merged into the existing CV
> or has otherwise been added to the appropriate GV.
>
> The change breaks part of Attribute::Handlers.  Part of A:H searches
> the package to find the name of the sub to which a :ATTR attribute
> is being applied, and the correct time at which to launch that search
> depends crucially on the order in which the CV construction events occur.
> So this patch also includes a change to A:H, to make it detect which way
> things happen.  The resulting A:H works either way, which is essential
> for its dual-life nature.

Thanks, applied as 09330df80caf214f375fcf0c04857347e3b17c69 to bleadperl.

Thread Previous


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