[S 21.5] Division by zero & continuable errors

Jerry James james at xemacs.org
Mon Oct 12 13:59:24 EDT 2009


On Fri, Oct 9, 2009 at 7:04 AM, Aidan Kehoe <kehoea at parhasard.net> wrote:
> It’s not much of an incompatibility;
>
> (condition-case nil
>    (floor pi 0)
>  (arith-error
>   (message "we have an arith error")))
>
> still works, because domain-error inherits from arith-error.

Okay, but I'm still going to leave it as arith-error for now.  We can
talk about changing it later if there's a compelling reason to do so.

>  > I took a look at how Emacs handles this situation.  They signal a
>  > noncontinuable error in both bytecode and interpreted code.
>
> Right, of course they do; they don’t have continuable errors.

<* Boggle *>  They don't!  Wow, I've got to use Emacs more often so I
can pick up on stuff like this...
-- 
Jerry James
http://www.jamezone.org/


More information about the XEmacs-Patches mailing list