cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: s/bool/int

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Tue, 25 May 2010 23:35:37 +0200

On Tuesday 25 of May 2010 22:49:42 Daniel Stenberg wrote:
> However, using 'bool' as a variable type may also easily trick readers into
> believing that it only can be 1 or 0, while in fact it can hold a lot of
> other values as well.

Is it anyhow useful for you to get a warning when assigning a non-bool
value to bool variable? If so, I can look for a solution to highlight
such suspicious places in the code.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-26