On Tue, Nov 27, 2007 at 10:48:00 +0000, Johannes Schindelin wrote:
=20
=20
Unfortunately, exceptions won't really work. Why? Because to use exceptions,
you need to have an exception-safe code. That is the code needs to free any
allocated resources when it's aborted by exception. And git code is not
exceptions safe. Given the lack of destructors in C, it means registering a=
ll
resource allocation in some kind of pool, so they can be freed en masse in
case of failure. Than you can also use longjmp for die (for C they really
behave the same).
--=20
Jan 'Bulb' Hudec <bulb@ucw.cz>