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

List:       kde-core-devel
Subject:    Re: RFC: A new helper class
From:       Harri Porten <porten () froglogic ! com>
Date:       2004-10-04 14:13:28
Message-ID: Pine.LNX.4.44.0410041611070.367-100000 () alster ! froglogic ! com
[Download RAW message or body]

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.

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

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