boolean

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • June Lee

    boolean

    what's different between

    bool / BOOL

  • June Lee

    #2
    Re: boolean

    in wtypes.h I also see

    typedef short SHORT;
    typedef double DOUBLE;

    why need 2 set of primitive type?

    one is upper case, other is lower case?

    >what's different between
    >
    >bool / BOOL

    Comment

    • Default User

      #3
      Re: boolean

      June Lee wrote:
      what's different between
      >
      bool / BOOL
      Get a decent book on C++. Stop trying to learn by reading outdated
      headers.




      Brian

      Comment

      • Ron Natalie

        #4
        Re: boolean

        June Lee wrote:
        what's different between
        >
        bool / BOOL
        >
        bool is a C++ type.

        BOOL is just an identifier. Some implementations might
        define it to something.

        Comment

        • Ron Natalie

          #5
          Re: boolean

          June Lee wrote:
          in wtypes.h I also see
          >
          typedef short SHORT;
          typedef double DOUBLE;
          >
          why need 2 set of primitive type?
          >
          one is upper case, other is lower case?
          >
          >
          >what's different between
          >>
          >bool / BOOL

          The typedef makes SHORT a synonym for SHORT.
          You'll have to ask whoever made those typedefs
          why they thought it was necessary.

          Comment

          Working...