develooper Front page | perl.perl6.language | Postings from June 2005

Re: Transparent / Opaque references

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?=22TSa_=28Thomas_Sandla=DF=29=22?=
Date:
June 1, 2005 10:16
Subject:
Re: Transparent / Opaque references
Message ID:
429DED5A.2090905@orthogon.com
Juerd wrote:
> Thomas Sandlass skribis 2005-05-28 17:34 (+0200):
>>I propose %hash = { key => :\$variable, foo => 'bar' };
> 
> :\$variable looks like many things to me, but not an alias.

Let's forget that idea, because I have a bunch of better ones!

$hash = { key => \      $variable but rw  , foo => 'bar' };
$hash = { key => \  :rw $variable         , foo => 'bar' };
$hash = { key => ref:rw $variable         , foo => 'bar' };

They are all assuming that &prefix:<\> has named params
that determine its behaviour by means of adverbial modifiers.
Well or that a rw role can be composed into a reference to
force binding behaviour. BTW, but is lower in precedence than \,
isn't it?
-- 
TSa (Thomas SandlaƟ)


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