• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 16 Jun 2003 16:25:40 +0200

At 20:43 Uhr +0200 15.06.2003, Karin Kosina wrote:
The problem is that when compiling obj-c++, "and" seems to get
replaced by "&&" in the source code. Therefore, the

- (void)displayConnectionBetween:(id)source and:(id)destination;

in [*] results in

"parse error before `&&' token"

and the build fails. (If I use an Obj-C class instead of Obj-C++
in the palette, everything works.)

Have you tried

#ifdef and
#undef and
#endif

?

It isn't very pretty, but it may be a workaround, as it looks like they simply hard-wired a macro into the C++ compiler that replaces "and" with "&&".
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
  • Follow-Ups:
    • Re: IB framework not compatible with Obj-C++ ?
      • From: Karin Kosina <email@hidden>
References: 
 >IB framework not compatible with Obj-C++ ? (From: Karin Kosina <email@hidden>)

  • Prev by Date: Re: Database Application.
  • Next by Date: Re: Convert hexstring to int?
  • 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