Talk About Network

Google





Mac > Mac Programmer Tools > Re: Cross-Platf...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 42 of 55 Topic 607 of 637
Post > Topic >>

Re: Cross-Platform Windows plus Mac

by Chris Hanson <cmh@[EMAIL PROTECTED] > Oct 27, 2007 at 02:00 AM

On 2007-10-25 13:29:53 -0700, Ben Artin <macdev@[EMAIL PROTECTED]
> said:

> Objective-C++ is of questionable utility. At compile time, g++ 4 mode
has bugs
> that make some code that compiles when included from a .cpp file not
compile
> when included from a .mm file.

I'm very curious about what those specific bugs are, and whether 
they're addressed in the version of GCC 4.0.1 that's distributed with 
Xcode 3.

Several years back -- in the GCC 3.1 days -- I did some consulting work 
for a client with a huge (multi-million line) Objective-C++ 
application.  It worked quite well for their them and they were using 
modern C++ idioms at the time.

All they did was ensure that the layers were properly separated, i.e. 
that they didn't pass exceptions across the Objective-C/C++ boundary.  
By following that and a few other simple patterns, all of their logic 
(and there was a ton of it) was in C++ as was most of their 
"high-level" presentation code.  That in turn talked to Objective-C 
code which actually implemented the behavior for the high-level 
presentation code.

Today it would be even easier because you can do things like have 
constructors (zero-argument only, of course) and destructors invoked 
for non-pointer C++ objects that happen to be instance variables of 
Objective-C cl*****.  Of course, in the 32-bit runtime you still can't 
just throw exceptions across the C++/Objective-C boundary, but as 
Michael Ash points out, you can't do that with callback-based C APIs 
anyway.

  -- Chris
 




 55 Posts in Topic:
Cross-Platform Windows plus Mac
"Chris Shearer Coope  2007-10-11 15:00:31 
Re: Cross-Platform Windows plus Mac
Reinder Verlinde <rein  2007-10-12 00:22:16 
Re: Cross-Platform Windows plus Mac
Jeffrey Dutky <jeff.du  2007-10-11 22:22:34 
Re: Cross-Platform Windows plus Mac
mlabs <aaron.miramar.l  2007-10-12 07:10:19 
Re: Cross-Platform Windows plus Mac
Simon Slavin <slavins.  2007-10-13 20:43:42 
Re: Cross-Platform Windows plus Mac
"Armel Asselin"  2007-10-22 11:03:19 
Re: Cross-Platform Windows plus Mac
Doc O'Leary <droleary.  2007-10-22 06:52:59 
Re: Cross-Platform Windows plus Mac
"Armel Asselin"  2007-10-22 14:35:48 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-22 11:41:19 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-22 09:48:49 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-22 18:10:17 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-22 17:55:26 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-22 17:25:53 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-23 07:26:23 
Re: Cross-Platform Windows plus Mac
Doc O'Leary <droleary.  2007-10-23 06:16:18 
Re: Cross-Platform Windows plus Mac
Gabriele Greco <gabrie  2007-10-23 13:26:35 
Re: Cross-Platform Windows plus Mac
Sherman Pendley <spamt  2007-10-23 11:00:44 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-23 09:26:15 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 20:41:13 
Re: Cross-Platform Windows plus Mac
Tom Harrington <tph@[E  2007-10-24 15:33:16 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 22:17:12 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-24 18:52:35 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-25 10:48:42 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-25 21:18:27 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-26 11:44:06 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-26 23:21:16 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-27 06:52:40 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-23 10:47:18 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 22:08:24 
Re: Cross-Platform Windows plus Mac
Tom Harrington <tph@[E  2007-10-23 10:00:07 
Re: Cross-Platform Windows plus Mac
Simon Slavin <slavins.  2007-10-25 20:19:27 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-25 17:48:44 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-23 21:32:00 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-23 21:40:56 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 20:56:43 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-25 16:29:53 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-25 17:52:58 
Re: Cross-Platform Windows plus Mac
Gabriele Greco <gabrie  2007-10-26 11:18:20 
Re: Cross-Platform Windows plus Mac
glenn andreas <gandrea  2007-10-26 08:52:11 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-26 10:01:16 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-26 23:10:42 
Re: Cross-Platform Windows plus Mac
Chris Hanson <cmh@[EMA  2007-10-27 02:00:33 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 01:33:48 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 10:04:40 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 11:39:25 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 11:17:18 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 13:35:24 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 21:42:39 
Re: Cross-Platform Windows plus Mac
glenn andreas <gandrea  2007-11-08 10:05:23 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 11:42:46 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-26 07:40:08 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-26 07:43:35 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-26 10:12:27 
Re: Cross-Platform Windows plus Mac
Steven Fisher <sdfishe  2007-10-27 06:02:07 
Re: Cross-Platform Windows plus Mac
Chris Hanson <cmh@[EMA  2007-10-27 02:09:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 22:29:02 PST 2009.