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

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

Thread Previous | Thread Next
Nick Ing-Simmons
September 2, 2000 10:27
[PATCH] Re: Perl5.7.0 "overload" of %{}
Message ID:
Nick Ing-Simmons <> writes:
>Nick Ing-Simmons <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About