Skip Menu |
 

This queue is for tickets about the Devel-BeginLift CPAN distribution.

Report information
The Basics
Id: 59983
Status: open
Priority: 0/
Queue: Devel-BeginLift

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.001003
Fixed in: (no value)



Subject: BeginLift + Method::Signatures::Simple causes a "Useless use of a constant" warning
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1280694097-2217-211"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 1248
Download (untitled) / with headers
text/plain 1.2k
Applying Devel::BeginLift to make methods declared with Method::Signatures::Simple to happen at compile time will under certain conditions cause a "Useless use of a constant in void context" warning. Code tickling the bug is attached. Run "perl -Ilib -dw test" to see it. $ perl5.12 -Ilib -dw test Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. Useless use of a constant (undef) in void context at lib/Example.pm line 6. at lib/Example.pm line 6 require Example.pm called at test line 3 main::BEGIN() called at lib/Example.pm line 8 eval {...} called at lib/Example.pm line 8 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> q It will only happen in the debugger, and only when "use warnings" is on. I suspect there may be a difference between the nextstate and dbstate ops that isn't being accounted for somewhere. The problem occurs on all Perls I checked. 5.10.1, 5.12.0 and 5.12.1. They are using Devel::Declare 0.00600, Method::Signatures::Simple 0.06 and Devel::BeginLift 0.001003.
Subject: bug.tgz
MIME-Version: 1.0
Content-Type: application/x-gzip; name="bug.tgz"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="bug.tgz"
Content-Transfer-Encoding: base64
Content-Length: 476
Download bug.tgz
application/x-gzip 476b

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-13105-1346999686-379.59983-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 321
Download (untitled) / with headers
text/plain 321b
On Sun Aug 01 16:21:37 2010, MSCHWERN wrote: Show quoted text
> It will only happen in the debugger, and only when "use warnings" is > on. I suspect there may be a difference between the nextstate and > dbstate ops that isn't being accounted for somewhere.
https://rt.cpan.org/Ticket/Display.html?id=60087 (I can't add an RT "refers")


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.