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

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

Thread Previous | Thread Next
From:
Miller, Scott L
Date:
July 23, 2001 10:57
Subject:
RE: [PATCH for discussion] new feature: clamp %hash
Message ID:
379A67AE5E644D40913DF74AA54DF42FFF9E@omacpdexchm01.CPQCEI.NET
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
> http://www.ni-s.u-net.com/
> 

Thread Previous | Thread Next


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