Re: exception trap in key snooper callback




On Aug 23, 2008, at 3:58 PM, Torsten Schoenfeld wrote:

We could add gperl_callback_invoke_trapped() which would trap exceptions and
invoke the registered exception handlers if an exception occurred.

In the vein of "less chance of screwing it up by rolling your own," i would go for that.


The question then is whether changing the mentioned callbacks to be invoked by gperl_callback_invoke_trapped() is backwards compatible. Is someone relying on
exceptions in those callbacks aborting the main loop?

As that would tend to lead to a crash, i should think not.


--
The front of your fridge may be cheap and nasty, but I hope the next time you look at the back of your fridge, you'll regard it with suitable admiration.
  -- Tim Hunkin, "The Secret Life of Machines"




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]