Re: Exceptions in glib



Havoc Pennington <hp redhat com> writes:

> You missed a huge one, which is that exceptions are useless unless you
> have destructors and functions can automatically free their local
> variables as the exception throws through the function. There's no way
> to write exception-safe C code.

The canonical solution to this is of course garbage collection, which
would make exceptions in C manageable. But I bet that's a topic that
has been discussed here (and probably rejected) before as well...

Andreas





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]