Completion of error handling

Markus Elfring Markus.Elfring at web.de
Sun Nov 23 11:50:28 GMT 2008


Thiago Macieira schrieb:
> If a function can return a null pointer under normal conditions, then the 
> return value must be checked.
>
> If it can return null only on an exceptional condition (such as out of 
> memory), then the checking can be skipped.

I would prefer a single and consistent reaction.
How do you distinguish a normal situation from an exceptional one in
this use case?

Regards,
Markus
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<




More information about the kde-core-devel mailing list