[<<][compsci][>>][..]
Wed Apr 27 10:27:52 EDT 2011

Low-level C : Exceptions or error codes?

The trouble with exceptions is memory management.  If all data is
stored in local variables on the call stack, exceptions implemented
with setjmp are not a problem.  If at any point there is non-local
state manipulation, be it memory allocation or any other global state
update, exceptions are very hard to get right, and incremental error
passing that can undo any global changes is probably a better idea.



[Reply][About]
[<<][compsci][>>][..]