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

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

Thread Previous | Thread Next
Arthur Bergman
July 23, 2001 11:00
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
01-07-23 19.56, skrev Miller, Scott L på följande:

> 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

To clamp the hash, you make the hash readonly, to make the entries readonly,
well, just make the entries readonly?


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