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

Re: Transparent / Opaque references

Thread Previous | Thread Next
June 2, 2005 12:30
Re: Transparent / Opaque references
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About