Re: Absense of bool



AommiK wrote:
....
OK. Some of you might refer to C99 and its _Bool (what's up with the
uppercase 'B' anyway?) and the header you can include (apparently) to

The committee chose a name that is reserved to the implementation for ALL uses, in order to avoid breaking any code that currently defined 'bool' with a conflicting meaning. They couldn't use _bool, either, because that name is reserved only " for use as identifiers with file scope in both the ordinary and tag name spaces."
.



Relevant Pages

  • Handling a boolean type
    ... INN currently uses three different ways internally for handling boolean ... typedef int BOOL; ... that inclusion of that header would therefore fail if something like the ...
    (comp.unix.questions)
  • same propertypage in 2 dialogs? (one calling the other)
    ... // in header MainSheet.h ... BOOL CRecall::OnInitDialog{ ... when user clickes on the button that should bring up my 2nd ... i thought i should destroy DlgErweitert in my CRecall *if* ...
    (microsoft.public.vc.mfc)
  • Re: The lack of a boolean data type in C
    ... Some of you might refer to C99 and its _Bool (what's up with the ... An identifier starting with an underscore and an uppercase letter is ... Suppose C had a built-in boolean type with a size of 1 bit. ...
    (comp.lang.c)
  • Re: Best Place to Define TRUE/FALSE
    ... #undef false ... #define bool int ... All this can be put into a header file, ...
    (comp.lang.c)