• 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: Nil and nil Macro Conflict
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nil and nil Macro Conflict


  • Subject: Re: Nil and nil Macro Conflict
  • From: William Squires <email@hidden>
  • Date: Wed, 13 Jun 2012 19:52:06 -0500

1) When in doubt, use C4! (actually, plain old dynamite should work just fine!)
2) Shoot the (idiot) developer of the C++ code for doing that (may result in serious jail time...)
3) Fuggedabouddit!
4) Wait for ObjC 3.0 and hope it has a feature to isolate badly written (or named) code in a namespace...

On May 1, 2012, at 6:44 AM, Andreas Grosam wrote:

> I want to use a C++ software library which uses class names "nil" and "Nil" for a Cocoa application.
>
> Including the headers will fail due to name conflicts with the macros "Nil" and "nil".
>
> What are my options?
>
>
> Regards
> Andreas
> _______________________________________________
>
> 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


_______________________________________________

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

  • Prev by Date: Re: NSTextField Tab Order.
  • Next by Date: Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory. (resolved)
  • Previous by thread: Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory. (resolved)
  • Next by thread: Refreshing an NSTableView with some columns using bindings, others not..
  • Index(es):
    • Date
    • Thread