On Wed, Nov 22, 2006 at 18:55:15 +0100, Juerd wrote: > Yuval Kogman skribis 2006-11-22 16:01 (+0200): > > my $x ::= 3; > > sub foo { say ++$x }; > > Why would you be allowed to ++ this $x? It's bound to an rvalue!
Perhaps my $x ::= BEGIN { Scalar.new( :value(3) ) } What we meant to be doing was to pre-set this value at compile time to 3. That doesn't really matter though -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418
pgpz0EsZwn4z2.pgp
Description: PGP signature