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

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

Thread Previous | Thread Next
Miller, Scott L
July 23, 2001 10:57
RE: [PATCH for discussion] new feature: clamp %hash
Message ID:
In my mind at least, clamping and readonly are 2 different animals.  
A hash that has been "clamped" could still have its values modified,
but can't have a new key added, but a hash that is readonly wouldn't
be able to add a key, or have its values modified...

-Scott L. Miller

> >I can imagine convincing arguments for semantics that do and don't
> >allow updates via the reference.
> I can't. If the hash in readonly/clamped then it does not matter how 
> you reach it it is readonly/clamped.
> -- 
> Nick Ing-Simmons

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