From kde-devel Mon Dec 05 13:02:09 2005 From: Guillaume Laurent Date: Mon, 05 Dec 2005 13:02:09 +0000 To: kde-devel Subject: Re: C++ exceptions Message-Id: <43943A51.20900 () telegraph-road ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=113378788310266 Michael Buesch wrote: > It is all about _coding_ in a clean way. Indeed. So show us how to rewrite the following in a clean way with return codes : void writeFile() { writeHeader(); writeContent(); writeFooter(); } //... try { writeFile(); } catch (DiskFullException e) { error("disk is full"); } > I have no idea about java. Gee, that's surprising to hear. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<