• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: One byte bool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One byte bool


  • Subject: Re: One byte bool
  • From: Scott Fraser <email@hidden>
  • Date: Wed, 15 Mar 2006 08:24:33 -0800

My preference is the "Boolean" type from "MacTypes.h", which is more explicitly a true/false flag than "UInt8", or its siblings.

Yes, a search of the Mac headers does reveal at least one "bool" in a struct: "CGEventTapInformation". Using a "bool" as a function return type or a function call parameter type isn't a problem, as all integral arguments and return values get promoted to 32-bits in both PPC and Intel calling conventions.

Scott
-----
On Mar 14, 2006, at 08:09 PM, Mark Stultz wrote:

Moving forward, I'm not opposed to using a uint8 instead of a bool. Would that be
a better option?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: One byte bool
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: XCode Localization limitation
  • Next by Date: Re: Building Universal
  • Previous by thread: Re: One byte bool
  • Next by thread: Re: One byte bool
  • Index(es):
    • Date
    • Thread