Is it worthwhile to learn Objective-C 1.x before Objective-C 2.x? -


I have some differences like garbage collection and 64-bit support, but I have a book based on 1.x and I was wondering if I was wasting my time, and after reading again, rising to 2.1?

2.0 vs 1.0 is not a very useful distinction because the lines are much blurred. , But only when applied to syntax (and even some holes).

Specifically, the syntax of language to consider and is ABI; There are also features to consider the actual binary format that only work in LLVM.

Good news, though, and said in the form of a dream, is that you really do not really care about 2.0 versus 1.0, either syntax or ABI perspective from any one syntax From the point of view, you want to use the features and to be done with it from ABI perspective, 1.0 vs 2.0 is academically interesting but will be invisible to your code. Most of the details generally become an issue for the authors of frameworks and large applications. Mostly

In any case and above my head:

  1. Garbage collection is available only in Mac OS X, I386 and x86_64) .

  2. @property is a syntax highlighted-2.0 feature, available on all platforms and compilers.

  3. Block C is compatible with Objective-C and, as iOS 4 , all platforms And are available on compilers.

  4. Block and C ++ are only supported in LLVM 2.0 , a compiler Not yet has been released, but

  5. @synthesize is available from the instance frequency only Objective-C 2.0 is available in ABI (non -Najuk iVars, which is based on).

  6. @property The automatic synthesis of the embedded yvar is in LLVM 2.0, currently in the form of an experimental feature.

  7. poseAsClass: has been deprecated in i386 and it is completely encoded with x86_64 & amp; IOS (i.e. Objective-C 2.0 is not present in ABI)

  8. Objective-C 1.0 ABI conveyed the general forms of class as structures. Objective-C 2.0 simply provides an API to obtain and edit all the internal entries about file bugs (please, please) on any missing piece, so that Nevard can be allowed to make future changes. .

  9. Both the "zero cost exceptions" and "integrated C ++ / objective-c exception" are in both-Objectives-C 2.0, although the implementation details are significantly between x86_64 and ARM Are different

I'm sure I can not find some things.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -