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 2, 2005 12:30
Subject:
Re: Transparent / Opaque references
Message ID:
429F5E3E.8020501@orthogon.com
Juerd wrote:
>>$y() = 7;
> 
> No, sorry, that looks to me as if $y is a reference to an lvalue sub,
> not like any form of referencing of scalars.

Well, it is a reference to an lvalue sub if it is just that :)
As unspecificly typed as it stands there it could be anything
that reacts to &postfix:<()>

And it nicely lines up with $y[], $y{}, @a[], %h{} etc. as
dereferential expressions.
-- 
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