• 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: IB framework not compatible with Obj-C++ ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB framework not compatible with Obj-C++ ?


  • Subject: Re: IB framework not compatible with Obj-C++ ?
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Mon, 16 Jun 2003 11:31:30 -0700

There is an easy solution to this problem: add '-fno-operator-names' to your compiler flags.

Presumably Apple's fix in 5b is to just default to having this flag.

-tim



On Monday, June 16, 2003, at 02:44 AM, Karin Kosina wrote:

Hi,

Thanks to everybody who replied. Just to check that I got that
right (please correct me if I am wrong):

1. "and" is a keyword in C++.

2. "and" is (currently) also a keyword in Obj-C++

3. In InterfaceBuilder.framework (and probably elsewhere as well),
we have methods like
- (void) foo:(id)a and:(id)b

4. This obviously makes it impossible to compile these classes
with Obj-C++

5. Apple had two possibilities for resolving this:

(a) Break the IB.framework API (rename the methods).
(b) Change the Obj-C++ compiler to be not C++ compliant in
that respect.

... and chose to go for (b).

Is that correct?

I am sorry if this has been discussed on this list before, I
haven't been following the discussion here for long. In that case,
a reference to the archive would be greatly appreciated. (Try
searching for "and" in Google and you'll understand why STFW doesn't
work for me. ;))


Thanks, =/~ kyrah

--
Karin Kosina (vka kyrah)
Systems in Motion
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: IB framework not compatible with Obj-C++ ? (From: Karin Kosina <email@hidden>)

  • Prev by Date: Creating an in-memory file? (for zlib's gzwrite)
  • Next by Date: location of user-defaults
  • Previous by thread: Re: IB framework not compatible with Obj-C++ ?
  • Next by thread: Re: IB framework not compatible with Obj-C++ ?
  • Index(es):
    • Date
    • Thread