Re: 64-bit vs 32-but Objective-C Runtime differenes [WAS]Re: Xcode Debugger: Cannot Step Into a Method in a x86_64 architecture build
Re: 64-bit vs 32-but Objective-C Runtime differenes [WAS]Re: Xcode Debugger: Cannot Step Into a Method in a x86_64 architecture build
- Subject: Re: 64-bit vs 32-but Objective-C Runtime differenes [WAS]Re: Xcode Debugger: Cannot Step Into a Method in a x86_64 architecture build
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 15 Jan 2009 10:03:17 -0800
On Wed, Jan 14, 2009 at 2:36 AM, Andreas Grosam <email@hidden> wrote:
> I'm a bit confused about whether we should use these 64-bit only features in
> Xcode/Cocoa/iPhone programming, as it has been mentioned as great
> improvements to the language several times from Apple evangelists -- or if
> we should remove any C++ traces and use pure Objective-C. The easiest way to
> solve the problem for Objective-C++ developers is that there are no language
> dependencies for different architectures (by adding them into 32-bit as
> well).
(note no 64-bit runtime exists for the iPhone and likely wont exist
anytime soon)
...or simply don't use exceptions in C++ layer that interacts with
Objective-C (and vice-versa). In general exceptions in Objective-C are
meant to flag programmer errors or catastrophic failures. So you
seldom use exceptions in Objective-C programming, as in attempt to
catch them (some edge cases exist of course, for example DO). In
re-world products we have developed we haven't had a hard time dealing
with this (we code to assume C++/Objective-C exceptions aren't unified
at this time since we support 10.4 and later).
In other words you don't have to drop the use of C++, you just have to
be a little careful about how and when you use it.
> IMHO, these differences are a bug.
Call it what you want... Apple could not modify the 32-bit runtime to
use the newer exception style since it would break existing
applications. In theory it should be possible to provide two 32-bit
runtimes; one that is compatible with the old exception model and one
for the new and then it would be come an opt-in feature decided at
compile time (you would have to link against on of the variants).
Apple however didn't do that in Leopard and it is unlikely that it
will happen now given the stated directions of Snow Leopard.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden