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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
David E. Wheeler
July 25, 2013 10:49
Re: Try/Catch Exception Objects: Possible?
Message ID:
On Jul 24, 2013, at 12:49 AM, chromatic <> 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}/ 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.



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About