Hello sage-devel,

At present, the error catching mechanism from PARI is rather bad: you
get exceptions like

Traceback (most recent call last):
...
PariError:  (15)


I would like to change this (and created ticket #9640).  When looking
into this issue, I realize it would make sense to add a general
mechanism in Sage's c_lib to deal with errors/exceptions from C code.  I
believe this could be integrated in the signal handling code in
c_lib/src/interrupt.c

Before doing this, I wanted to know
1) Is there a general agreed-upon mechanism to deal with errors from C code?
2) Is there any current project to rewrite code in c_lib/src/interrupt.c
or related files?


Jeroen.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to