develooper Front page | perl.perl5.porters | Postings from January 2017

Re: Confused by eval behavior

Thread Previous | Thread Next
From:
perl
Date:
January 24, 2017 15:43
Subject:
Re: Confused by eval behavior
Message ID:
8c1dbb6f-77f1-3dda-3e97-6c90a444813d@profvince.com


Le 24/01/2017 à 15:04, Dave Mitchell a écrit :
> On Fri, Nov 25, 2016 at 05:23:32PM +0000, Dave Mitchell wrote:
>> On Mon, Nov 14, 2016 at 05:46:38PM -0200, Vincent Pit (VPIT) wrote:
>>> Sorry for the delay, I've been quite busy and completely forgot about your
>>> message.
>>
>> No worries :-)
>>
>>>>> And is it intended that the free anon sub should called exactly once?
>>>
>>> Yes.
>>
>> Well, V::M currently calls the anon sub twice, while blead with my eval
>> FREETMPS patch goes into an infinite loop.
>>
>> However, applying the proof-of-concept diff below makes it be called
>> only once.
>
> Is there any likelihood of something similar to my proof-of-concept patch
> being applied to Variable-Magic?
>

It has already been in git for a while. I was waiting for more feedback 
about why free callbacks could end up being called twice when recasting, 
but since it seems like an unrelated issue (it appeared somewhere during 
5.23.x) I've just released a new version with your change.


Vincent

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