From: Roy Lyseng Date: August 31 2010 5:57pm Subject: Re: [STYLE] use true/false in C++, not TRUE/FALSE List-Archive: http://lists.mysql.com/internals/38055 Message-Id: <4C7D4298.9040802@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 31.08.10 19.51, Vladislav Vaintroub wrote: > > >> -----Original Message----- >> From: Roy Lyseng [mailto:roy.lyseng@stripped] >> Sent: Tuesday, August 31, 2010 7:43 PM >> To: MARK CALLAGHAN >> Cc: Davi Arnaut; Jay Pipes; Guilhem Bichot; internals >> Subject: Re: [STYLE] use true/false in C++, not TRUE/FALSE > > >> The good thing with bool return is that you cannot overload it with additional >> information... > > Why not ? return (bool)42 would return 42 in every C99 implementation of bool, as bool is mapped to some integer type per C99 > standard. Not if I am reviewing your code :) Roy