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

[perl #108286] Wishlist: Overridable keywords

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
April 23, 2012 18:15
Subject:
[perl #108286] Wishlist: Overridable keywords
Message ID:
rt-3.6.HEAD-4610-1335230110-1220.108286-15-0@perl.org
On Mon Apr 23 16:26:04 2012, LeonT wrote:
> On Tue, Apr 24, 2012 at 12:41 AM, Leon Timmermans <fawaka@gmail.com>
wrote:
> > That's what mg_copy is for, assuming the magic has a copy method
> > implemented (I think it doesn't).
> 
> No, that's wrong. It's mg_dup. I hate how confusing those two names are.

I’ve just had a look at the code, and I see that mg_dup is defined only
under threads.  So I don’t think it is what I want.  And I think you
were right the first time.  So, thank you.

What is the significance of the return value of mg_copy?  It seems to be
the number of magic structs copied.  But it is always called in void
context, at least in core.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=108286

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