Devel-Camelcadedb icon indicating copy to clipboard operation
Devel-Camelcadedb copied to clipboard

lvalue subroutines not handled properly

Open JB62 opened this issue 7 years ago • 1 comments

Assigning to lvalue subroutines always fails with "Can't modify non-lvalue subroutine call at ..." errors when run under the debugger. The same code executes just fine stand-alone.

eg.

use strict; use warnings; my $var = "Before"; sub foo : lvalue { $var; } foo = "After"; print foo, "\n";

Gives... (1)Connecting to the IDE from process 1698 at localhost:38513... Connected. Disconnected Can't modify non-lvalue subroutine call at /data/misc/sample-share/working/src/xx.pl line 7, <GEN0> line 1.

Where just running on the command line gives

$ perl xx.pl After

--

IDE version: IC-171.3780.107 Plugin version: 2017.1.1 Perl version v5.22.1 Devel::Camelcadedb version 1.6.1.6

JB62 avatar Mar 29 '17 15:03 JB62

Probably related https://github.com/Perl/perl5/issues/17412

hurricup avatar Jul 22 '21 08:07 hurricup