Author: Johan de Koning
Date: 17:40:29 09/27/03
Go up one level in this thread
On September 27, 2003 at 02:57:52, Gerd Isenberg wrote: >On September 27, 2003 at 00:03:31, Johan de Koning wrote: > >>On September 26, 2003 at 06:50:59, Gerd Isenberg wrote: >> >>>Hi All, >>> >>>in C++ we have the boolean type "bool" with the value range true/false. >>>I'm not sure about ANSI-C. >> >>The only valid bool would be a strictly 1-bit strictly logical piece of data. >>Hence there is no use for bool in C until sizeof(bool) returns 0.125. > >That's actually true for arrays of "bool", e.g. fixed sized 64 ones, called >bitboards ;-) And for aesthetical or didactical reasons you declare them as bool, right? typedef bool BITBOARD[64]; // :-) >>So my advice is to please yourself and your colleages by disputing what's north >>of the north pole, or what's older then the big bang, or which programming >>languages produce correct boolshit code and aren't used for some reason. >> >>Life can be simple. :-) > >hehe, yes. But it not that simple in a project (C++ Qt-windows/linux clients >/Java AppServer), where ten or a few more developers with different skill are >working on... Hmmm, I think people with "different skills" can be helped greatly by keeping things simple. Eg: always use int, unless something else is better. In the latter case use int anyway. :-) ... Johan
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.