develooper Front page | perl.perl5.porters | Postings from April 2012

Re: [perl #108286] Wishlist: Overridable keywords

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
April 23, 2012 15:41
Subject:
Re: [perl #108286] Wishlist: Overridable keywords
Message ID:
CAHhgV8iOXWR1XBcNwKKUoKqfCY982Ta1vRavUNsJ+bDWe__RTA@mail.gmail.com
On Tue, Apr 24, 2012 at 12:21 AM, Father Chrysostomos via RT
<perlbug-followup@perl.org> wrote:
> In fact, in the process of thinking about this and considering where the
> attribute could be stored, I’ve noticed that cv_clone doesn’t copy
> magic, which means that call checkers added in attribute handlers won’t
> apply to closures cloned therefrom.  I think this is clearly a bug.  But
> (and this question is aimed mostly at Zefram) would copying the magic be
> the best solution?  Is there a standard way of copying magic already
> that cv_clone can use?

That's what mg_copy is for, assuming the magic has a copy method
implemented (I think it doesn't).

Leon

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