[Python-Dev] Interesting paper on exception handling in C

Skip Montanaro skip@pobox.com (Skip Montanaro)
Mon, 26 Nov 2001 16:37:12 -0600


I saw a reference to MLib today on one of the Gtk lists.  Its doc page, in
turn, referenced a paper by David Turner on "cleanup stack exception
handling" that looked mighty interesting.  It looks like he manages a lot of
exception handling and memory free activities automatically with judiciously
defined TRY and CATCH macros.  I thought others here might find it
interesting as well:

    http://www.freetype.org/david/reliable-c.html

If something like this was implemented in the Python source, it might make
it possible to write cleaner more leak-resistant extension modules.

Skip