develooper Front page | perl.perl5.porters | Postings from July 2013

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
July 25, 2013 10:49
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
2B9551F3-EC64-40F8-93AA-32F675B70690@justatheory.com
On Jul 24, 2013, at 12:49 AM, chromatic <chromatic@wgz.org> wrote:

> I can't find the relevant branch at the moment, but I'm not sure there is much 
> left salvaging at this point.

Bummer, might have been useful.

I was thinking about what might be the simplest thing to try, and came up with this:

* Create a dead simple .pm exception class like you describe (Maybe you have that lying around somewhere?)

* Edit $Config{sitelib}/sitecustomize.pl and have it either replace CORE::die or set $SIG{__DIE__} to use the exception object.

* Run the test suite and see what happens.

* If the core tests pass, smoke it.

This would be an experiment, not a plan for implementation, just to see how much breaks, and to inform possible directions for implementation.

Best,

David


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