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 29, 2001 01:38
Subject:
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
B789980C.28D7%arthur@contiller.se
01-07-29 03.05, skrev Michael G Schwern på schwern@pobox.com följande:

>> my %hash = (a => 1, b => 2);
>> my $ref  = \$hash;
>> readonly \%hash;     # clamped
> 
> C<readonly %hash> should be achievable by simply using the \% prototype.

No, since you can do readonly $scalar aswell.

I have the same problem with
lock/unlock/cond_wait/cond_signal/cond_broadcast

A \($|@|%) prototype or something like that taking a reference to anything
would be a very very very welcome addition.
-- 
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