[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: C++ exceptions
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2005-12-05 13:02:09
Message-ID: 43943A51.20900 () telegraph-road ! org
[Download RAW message or body]

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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic