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

Re: [PATCH 5.5.660] better avhv patch

Gurusamy Sarathy
March 1, 2000 17:17
Re: [PATCH 5.5.660] better avhv patch
Message ID:
On Wed, 01 Mar 2000 20:04:23 EST, Joshua N Pritikin wrote:
>On Thu, Mar 02, 2000 at 12:16:26AM +0000, wrote:
>> A viable scheme needs to have the mechanism better hidden, perhaps by
>> putting the key-to-index mapping inside some magic.    And there probably
>> needs to be more critical discussion of what this mechanism is
>> actually for.
>> What we currently have should be deprecated or otherwise suppressed.

Well, it is already experimental, which to my mind is deprecative

>Agreed.  IIRC, perl6 seals the implementation of arrays/hashes behind
>virtual methods.  Perl5 could do the same using dispatch tables.
>I suspect that this would also have the potential advantage of
>collapsing the SvTYPE by one or two bits. I can put together a patch
>(including a reimplementation of the AVHV fields stuff) by midnight
>Thursday, in consideration of the imminent 5.6 release canidate, if
>there is enough interest.

Do it if you will for its own sake, but don't try to get something
done just to beat the deadline for the release.  All I can promise to
do at this stage is leave the "experimental" flag on pseudo-hashes
enabled.  I don't want to throw out what we've got without really
evaluating your (potential) (alleged) "alternative" approach :-),
and I certainly don't have the time to blow on that particular
line of enquiry now.

Sarathy Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About