develooper Front page | perl.perl5.porters | Postings from August 2001

lvalue method calling still broken

Thread Next
From:
Robin Houston
Date:
August 14, 2001 07:37
Subject:
lvalue method calling still broken
Message ID:
20010814153539.B9081@robin.kitsite.com
This is just a heads-up. I know that some people are already aware of
this:

[robin@robin perl@11660]$ DYLD_LIBRARY_PATH=. ./perl -e 'foo()->$bar = 1'
panic: unexpected optree near method call at -e line 1, at EOF

In fact, lvalue sub calls in general are pretty broken in bleadperl
at the moment, in the sense that returned lvalues don't work if you
use an explicit return statement:

[robin@robin perl@11660]$ DYLD_LIBRARY_PATH=. ./perl -l
sub x :lvalue {$x}
sub X :lvalue {return $x}
x()=12; print X();
X()=34; print x();
__END__
12
12


 .robin.

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