From kde-devel Mon Dec 05 07:16:24 2005 From: Guillaume Laurent Date: Mon, 05 Dec 2005 07:16:24 +0000 To: kde-devel Subject: Re: C++ exceptions Message-Id: <200512050816.24903.glaurent () telegraph-road ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=113376703423333 On Monday 05 December 2005 05:13, David Johnson wrote: > > Exactly. Which is why they shouldn't be in libraries. The application > author shouldn't be compelled to use a language feature he is not > comfortable with. Oh please, handling exceptions isn't that hard, and is much less cumbersome than checking a return code (which has not at all the same use, actually). > A library function that returns an classic error code > can be used by both exception and no-exception using applications. But it you try to handle an error which should be reported by an exception through a simple return code, you force the programmer into writing some pseudo-exception handling/stack unwinding code. -- Guillaume. http://www.telegraph-road.org >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<