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

Re: Circular dereference?

Thread Previous | Thread Next
From:
Juerd
Date:
May 4, 2005 06:18
Subject:
Re: Circular dereference?
Message ID:
20050504131829.GY26732@c4.convolution.nl
Autrijus Tang skribis 2005-05-04 21:13 (+0800):
> What should this do, if not infinite loop?
>     my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1;

I'm still against any explict scalar dereferencing, so: fail,
complaining about $x not being an arrayreference (not knowing how
to handle &postcircumfix:<[ ]>).


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

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