• 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: Why are BOOL and bool distinct types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are BOOL and bool distinct types?


  • Subject: Re: Why are BOOL and bool distinct types?
  • From: Bill Bumgarner <email@hidden>
  • Date: Wed, 8 Jun 2005 08:27:00 -0700

On Jun 8, 2005, at 7:54 AM, Todd Blanchard wrote:

That sounds like a fairly stupid decision by the compiler writers. Since Apple maintains the ObjectiveC part of the compiler and contributes fixes, I'd think this would be something they could see fixed up, then change the typedef.


Thus rendering binaries incompatible when mixing binaries compiled before/after the change.


Objective-C is dynamic and many mechanisms in the Foundation -- DO, KVO, KVC, etc.. -- and third party tools like PyObjC depend on the size of a bool remaining a constant 8 bits. Changing it would cause massive breakage.

b.bum

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Why are BOOL and bool distinct types? (From: Todd Blanchard <email@hidden>)
 >Re: Why are BOOL and bool distinct types? (From: "Sean McBride" <email@hidden>)
 >Re: Why are BOOL and bool distinct types? (From: Fritz Anderson <email@hidden>)
 >Re: Why are BOOL and bool distinct types? (From: Todd Blanchard <email@hidden>)

  • Prev by Date: Re: self
  • Next by Date: Re: - (IBAction)showWindow:(id)sender
  • Previous by thread: Re: Why are BOOL and bool distinct types?
  • Next by thread: Re: Why are BOOL and bool distinct types?
  • Index(es):
    • Date
    • Thread