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

Re: [PATCH 5.5.670] pseudohash, one more try

From:
Gurusamy Sarathy
Date:
March 2, 2000 08:44
Subject:
Re: [PATCH 5.5.670] pseudohash, one more try
Message ID:
200003021646.IAA09162@maul.activestate.com
On Thu, 02 Mar 2000 05:31:36 EST, John Tobey wrote:
>Okay.  I've put the compile-time check back in, this time in
>Perl_newASSIGNOP.  pp_aassign walks the op tree when an AV/AVHV is
>found and the op flag indicates a % expression exists somewhere on the
>left side.  Simple hash variables (%foo) are discounted because they
>cannot be pseudohashes.  I believe that false positives (op tree
>walked but no avhv) would be rare.

Haven't tried it, but this certainly looks much better than the
earlier ones.

Thanks.


Sarathy
gsar@ActiveState.com



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About