develooper Front page | perl.perl5.porters | Postings from November 2010

Re: [perl #79828] STDERR isn't being unlocalized when there's anunhandled exception.

Thread Previous
From:
Elliot Shank
Date:
November 28, 2010 16:28
Subject:
Re: [perl #79828] STDERR isn't being unlocalized when there's anunhandled exception.
Message ID:
4CF2F386.4010606@galumph.com
On 11/28/10 5:49 PM, Tom Christiansen wrote:
> But it *hasn't* left that scope:
[chop]
> It is still within scope.

But it shouldn't be.  If I'd enclosed the entire program in an eval, the stack would have been unwound; why is this any different than having an eval built into the VM surrounding your program?

I'd expect destructors to be called on unhandled exceptions too.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About