[MLton-devel] calling SML from C; reentrance

Stephen Weeks MLton@mlton.org
Tue, 20 May 2003 09:15:20 -0700


> One possible advantage of executing a function call on top of a stack is
> that the function could inheret the exception handler of the stack.

Since C doesn't have exceptions, I think the right semantics for an
unhandled exception in a C callback is to fail.  If the programmer
doesn't want failure, they have to handle the exception and return an
appropriate error code to C.


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel