• 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: constructor cannot be overloaded?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: constructor cannot be overloaded?


  • Subject: Re: constructor cannot be overloaded?
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 31 Mar 2011 11:03:34 -0600

On Mar 31, 2011, at 10:49 AM, Sean McBride wrote:

> On Wed, 30 Mar 2011 17:46:28 -0700, David Duncan said:
>>
>> You can use NS_BUILD_32_LIKE_64 then you can ensure that this happens in
>> all of your builds (assuming you still support 32-bit with this project).
>
> But beware that NS_BUILD_32_LIKE_64 also changes the size of NSInteger
> in 32bit, which may or may not cause you problems.

It doesn't change the size; it just changes its definition from int to long. In 32-bit builds, int and long are both 32-bit integers; they're only different in 64-bit builds. It'll only cause problems if you're doing something that requires strict type checking, but otherwise, it should just work.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: constructor cannot be overloaded?
      • From: Sean McBride <email@hidden>
References: 
 >constructor cannot be overloaded? (From: Rick Mann <email@hidden>)
 >Re: constructor cannot be overloaded? (From: Rick Mann <email@hidden>)
 >Re: constructor cannot be overloaded? (From: David Duncan <email@hidden>)
 >Re: constructor cannot be overloaded? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Can't keep untitled windows from opening!
  • Next by Date: Re: constructor cannot be overloaded?
  • Previous by thread: Re: constructor cannot be overloaded?
  • Next by thread: Re: constructor cannot be overloaded?
  • Index(es):
    • Date
    • Thread