Skip Menu |

This queue is for tickets about the Class-Std CPAN distribution.

Report information
The Basics
Id: 80549
Status: open
Priority: 0/
Queue: Class-Std

People
Owner: Nobody in particular
Requestors: jpm919 [...] gmail.com
Cc:
AdminCc:

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



Subject: Carp exceptions are discarded during DEMOLISH processing?
Date: Thu, 1 Nov 2012 11:26:33 -0400
To: bug-class-std [...] rt.cpan.org
From: J M <jpm919 [...] gmail.com>
Exceptions within DEMOLISH are lost. What is the explanation for this (I couldn't find an applicable post)? . Example below. Thanks, Jason # scratch.pm package scratch; use strict; use warnings; use Carp; use Class::Std; sub DEMOLISH { carp "demolish warning\n"; croak "demolish croak\n"; } 1; # /scratch.pm # scratch.pl use strict; use warnings; use scratch; use Carp; my $obj = scratch->new(); # /scratch.pl
From: sendwade [...] hotmail.com
On Thu Nov 01 11:26:48 2012, jpm919@gmail.com wrote: Show quoted text
> Exceptions within DEMOLISH are lost. What is the explanation for this (I > couldn't find an applicable post)? . Example below.
Hi Jason, I'm working this dist as my assignment for the month for the perl pull request challenge. I can't duplicate your issue, at least on 5.12.5: use warnings; use strict; package scratch; use Carp; use Class::Std; sub DEMOLISH { carp "demolish warning\n"; croak "demolish croak\n"; } package main; my $obj = scratch->new(); Gives: $ perl -Ilib xt/scratch.pl demolish warning at lib/Class/Std.pm line 527. (in cleanup) demolish croak at lib/Class/Std.pm line 527