From: Michael Widenius Date: September 8 2010 3:32pm Subject: Re: [STYLE] use true/false in C++, not TRUE/FALSE List-Archive: http://lists.mysql.com/internals/38071 Message-Id: <19591.44192.769218.200438@narttu.askmonty.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! >>>>> "MARK" == MARK CALLAGHAN writes: MARK> On Tue, Aug 31, 2010 at 10:23 AM, Davi Arnaut wrote: >> >> I haven't keep up with the thread, but I think the my_bool for C code is a >> bit of silliness. We should just stick to int where applicable and be done >> with it. MARK> I hope the code moves in that direction. I understand using 0 for MARK> success and != 0 for error. I get confused when TRUE means error and MARK> FALSE means success. It's all what you get used to. From a C point of view, it's more logical that 0 means 'ok' and something else means error as there is only one ok and many errors. Regards, Monty