develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #123092] Sub inlining inconsistencies

Thread Next
From:
Father Chrysostomos via RT
Date:
October 31, 2014 22:58
Subject:
[perl #123092] Sub inlining inconsistencies
Message ID:
rt-4.0.18-4005-1414796281-48.123092-15-0@perl.org
Even worse:

$ ./perl -Ilib -e 'BEGIN { my $x; *foo = sub ():lvalue{0;return $x}} foo()++'
Can't modify constant item in postincrement (++) at -e line 1, near "foo()++"
Execution of -e aborted due to compilation errors.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=123092

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