From: Michael Widenius Date: September 8 2010 3:36pm Subject: Re: [STYLE] use true/false in C++, not TRUE/FALSE List-Archive: http://lists.mysql.com/internals/38072 Message-Id: <19591.44413.744287.167461@narttu.askmonty.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! >>>>> "MARK" == MARK CALLAGHAN writes: MARK> That isn't the problem. The problem is when I read frequently MARK> undocumented header files. MARK> my_bool do_this(); MARK> The standard used by libc and others is to return an int with 0 as MARK> success and != 0 as an error. MySQL is the only system on which I have MARK> worked that uses bool and my_bool for this. In other words, the standard is to return TRUE for errors and FALSE for success, which you found confusing earlier. MySQL only uses my_bool to signal that the function only return 0 or 1, which I personally think is useful to know. I agree that it's in more common in C++ to use bool for things like this but because of that one shouldn't allow C code to have the same benefit of the added readability. Regards, Monty