Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precise definition of error handling #38

Open
phst opened this issue Nov 9, 2015 · 1 comment
Open

More precise definition of error handling #38

phst opened this issue Nov 9, 2015 · 1 comment

Comments

@phst
Copy link
Collaborator

phst commented Nov 9, 2015

Some errors (e.g. passing a null pointer, calling a function from the wrong thread) are currently undefined behavior (asserted only if checking is enabled), others (e.g. passing an object of a wrong type, wrong number of arguments, numeric overflow) raise Emacs signals. We should clearly state what the behavior is in each case and what principles it follows. (The current implementation is a bit unprincipled, but my general approach was to make errors defined that could also occur in Lisp code.)

@aaptel
Copy link
Owner

aaptel commented Nov 9, 2015

Specifying what is undefined, what signals and what simply returns is a good idea. I approve.

@phst phst modified the milestone: GNU Emacs 25.1 Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants