List:Internals« Previous MessageNext Message »
From:Davi Arnaut Date:August 31 2010 5:23pm
Subject:Re: [STYLE] use true/false in C++, not TRUE/FALSE
View as plain text  
AFAIR, no.

Anyway...

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.

On 8/31/10 2:04 PM, MARK CALLAGHAN wrote:
> Does it support bool?
>
> On Tue, Aug 31, 2010 at 9:56 AM, Davi Arnaut<davi.arnaut@stripped>  wrote:
>> On 8/31/10 1:54 PM, Jay Pipes wrote:
>>>
>>> Please name one that doesn't :)
>>
>> Microsoft Visual C++.
>>
>>> On Tue, Aug 31, 2010 at 12:48 PM, Davi Arnaut<davi.arnaut@stripped>
>>>   wrote:
>>>>
>>>> It should be obvious, but how long C99 has been around does not matter
>>>> much.
>>>> Whether the compilers we rely upon are providing those C99 features is
>>>> much
>>>> more important.
>>>>
>>>> On 8/31/10 1:41 PM, Jay Pipes wrote:
>>>>>
>>>>> Yeah, it's WAY too early to standardize on C99 and stdbool.h. ;)
>>>>>
>>>>> -jay
>>>>>
>>>>> On Tue, Aug 31, 2010 at 12:32 PM, Guilhem Bichot
>>>>> <guilhem.bichot@stripped>      wrote:
>>>>>>
>>>>>> I guess the only solution to this, is to decrease the use of
> my_bool as
>>>>>> much
>>>>>> as possible, i.e. use bool in C++ code. my_bool would be confined
> to C
>>>>>> code
>>>>>> (which code does not evolve much nowadays).
>>>>>>
>>>>>> MARK CALLAGHAN a écrit, Le 31.08.2010 17:53:
>>>>>>>
>>>>>>> Behavior like this is unwelcoming to the community.
>>>>>>> (my_bool) 255 -->      TRUE
>>>>>>> (my_bool) 256 -->      FALSE
>>>>>>> (my_bool) 257 -->      TRUE
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 2:05 AM, Guilhem Bichot
>>>>>>> <guilhem.bichot@stripped>      wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Sure, but what do you mean by "fix my_bool"? Could you
> please expand
>>>>>>>> a
>>>>>>>> little bit?
>>>>>>>>
>>>>>>>> MARK CALLAGHAN a écrit, Le 26.08.2010 18:17:
>>>>>>>>>
>>>>>>>>> Are there plans to fix my_bool?
>>>>>>>>>
>>>>>>>>> It has been quiet on internals so I figured I would
> ask.
>>>>>>
>>>>>> --
>>>>>> MySQL Internals Mailing List
>>>>>> For list archives: http://lists.mysql.com/internals
>>>>>> To unsubscribe:
>>>>>>   http://lists.mysql.com/internals?unsub=1
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>
>>
>
>
>

Thread
[STYLE] use true/false in C++, not TRUE/FALSEGuilhem Bichot26 Aug
  • Re: [STYLE] use true/false in C++, not TRUE/FALSERoy Lyseng26 Aug
  • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN26 Aug
    • Re: [STYLE] use true/false in C++, not TRUE/FALSEGuilhem Bichot31 Aug
      • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN31 Aug
        • Re: [STYLE] use true/false in C++, not TRUE/FALSEGuilhem Bichot31 Aug
          • Re: [STYLE] use true/false in C++, not TRUE/FALSEJay Pipes31 Aug
            • Re: [STYLE] use true/false in C++, not TRUE/FALSEDavi Arnaut31 Aug
              • Re: [STYLE] use true/false in C++, not TRUE/FALSEJay Pipes31 Aug
                • Re: [STYLE] use true/false in C++, not TRUE/FALSEDavi Arnaut31 Aug
                  • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN31 Aug
                    • Re: [STYLE] use true/false in C++, not TRUE/FALSEDavi Arnaut31 Aug
                      • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN31 Aug
                        • Re: [STYLE] use true/false in C++, not TRUE/FALSERoy Lyseng31 Aug
                          • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN31 Aug
                            • Re: [STYLE] use true/false in C++, not TRUE/FALSEMichael Widenius8 Sep
                              • Re: [STYLE] use true/false in C++, not TRUE/FALSEJay Pipes8 Sep
                          • RE: [STYLE] use true/false in C++, not TRUE/FALSEVladislav Vaintroub31 Aug
                            • Re: [STYLE] use true/false in C++, not TRUE/FALSERoy Lyseng31 Aug
                            • Re: [STYLE] use true/false in C++, not TRUE/FALSEDavi Arnaut31 Aug
                              • Re: [STYLE] use true/false in C++, not TRUE/FALSEMichael Widenius8 Sep
                                • Re: [STYLE] use true/false in C++, not TRUE/FALSEDavi Arnaut8 Sep
                                  • RE: [STYLE] use true/false in C++, not TRUE/FALSEVladislav Vaintroub8 Sep
                        • Re: [STYLE] use true/false in C++, not TRUE/FALSEMichael Widenius8 Sep
                      • Re: [STYLE] use true/false in C++, not TRUE/FALSEKonstantin Osipov8 Sep
                        • Re: [STYLE] use true/false in C++, not TRUE/FALSEMats Kindahl8 Sep
                          • Re: [STYLE] use true/false in C++, not TRUE/FALSETor Didriksen8 Sep
                            • Re: [STYLE] use true/false in C++, not TRUE/FALSEMats Kindahl8 Sep
                              • RE: [STYLE] use true/false in C++, not TRUE/FALSEVladislav Vaintroub8 Sep
                                • Re: [STYLE] use true/false in C++, not TRUE/FALSEMats Kindahl8 Sep
                              • Re: [STYLE] use true/false in C++, not TRUE/FALSETor Didriksen8 Sep
                                • Re: [STYLE] use true/false in C++, not TRUE/FALSEMats Kindahl8 Sep
                  • Re: [STYLE] use true/false in C++, not TRUE/FALSEJay Pipes31 Aug
        • Re: [STYLE] use true/false in C++, not TRUE/FALSEMichael Widenius8 Sep
      • Re: [STYLE] use true/false in C++, not TRUE/FALSEMARK CALLAGHAN31 Aug
  • Re: [STYLE] use true/false in C++, not TRUE/FALSEMats Kindahl27 Aug
    • Re: [STYLE] use true/false in C++, not TRUE/FALSEMichael Widenius8 Sep