RFC: A new helper class

Harri Porten porten at froglogic.com
Mon Oct 4 15:13:28 BST 2004


On Mon, 4 Oct 2004, Allan Sandfeld Jensen wrote:

> Maybe I am old-fashioned, but I prefer the traditional C-way of representing
> this:
> int ret;
> ret>0 -> true
> ret==0 -> false
> ret<0 -> error/exception

Funny. I'd interpret an value of 0 as meaning success in a C api. So it
seems like this convention is not *that* safe ;)

Harri.





More information about the kde-core-devel mailing list