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

[PATCH] Re: Perl5.7.0 "overload" of %{}

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
September 2, 2000 10:27
Subject:
[PATCH] Re: Perl5.7.0 "overload" of %{}
Message ID:
E13VGuZ-0001KV-00@roam1
Nick Ing-Simmons <nick@ing-simmons.net> writes:
>Nick Ing-Simmons <nick@ing-simmons.net> writes:
>>
>>I am trying to decipher the gv.c code.
>>
>>Assuming I can find it I suggest:
>>
>>A. to_hv_amg i.e. %{} and related things do not fall through to 'nomethod'
>>
>>B. If %{} and co return %_[0] i.e. the object then further looping is 
>>   supressed.
>>
>>(A) should avoid breakage like mine.
>>(B) will break out of an easy to do infinite loop and 
>>    a way to optimize the "access to self" if you _do_ want the overload.
>
>This is checked in as change 7009 cures the infinite loop and implements (B).

diff was baddly mangled by mailer.

Here it is again along with diff version of change 7012
which implements (A).

make test still passes and my application now runs unmodified.



-- 
Nick Ing-Simmons


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