develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133123] eval '__PACKAGE__' in debug mode do not return rightpackage

Thread Previous | Thread Next
From:
KES via RT
Date:
April 23, 2018 14:14
Subject:
[perl #133123] eval '__PACKAGE__' in debug mode do not return rightpackage
Message ID:
rt-4.0.24-6065-1524492848-1623.133123-15-0@perl.org
>If I understand you correctly, you're wanting __LINE__etc to be changed from compile-time constants to run-time functions?

No. Maybe change the value it is compiled into when this is 'eval' in DB package

> By 'eval in debugger mode', are you referring to the 'x' debugger
> command,
> or perl's built-in 'eval' function, or something else?
Sorry, This is too often I may explain poor


I mean next:
eval EXPR, FRAMENUMBER

An eval '' executed within a subroutine defined in the DB package doesn't see the usual surrounding lexical scope, but rather the scope of **the first** non-DB piece (FRAMENUMBER=0) of code that called it. You can provide FRAMENUMBER to force eval see the second (FRAMENUMBER=1), the third (FREAMENUMBER=2) scope 


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

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