develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH for discussion] new feature: clamp %hash

Thread Previous | Thread Next
Nick Ing-Simmons
July 25, 2001 05:48
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
Simon Cozens <> writes:
>On Tue, Jul 24, 2001 at 10:38:55AM -0700, Jeffrey Friedl wrote:
>> As I and Scott have said, and to which you agreed, clamping and
>> readonlyness are different animals. Shouldn't the way to invoke them,
>> therefore, also be different?
>And I'll reiterate that if you want clamping, then Tie::SecureHash
>does exactly what you're after.

Except speed. Jeffrey's scheme trades a C level SvREADONLY(hv) 
(on all hash accesses) vs method despatch on "clamp-via-tie".

Nick Ing-Simmons

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