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

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

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
July 23, 2001 11:00
Subject:
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
B78232B9.275C%arthur@contiller.se
01-07-23 19.56, skrev Miller, Scott L på Scott.L.Miller@compaq.com 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?

-- 
Arthur


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