Differences between Objective-C and Objective-C 2.0

I reserved 2 libraries that came on the same day. I saw them on a shelf and realized that they were the same, except for one about ObjC, and one about ObjC 2.0.

Also, what is Objective-C ++?

+4
source share
2 answers

Apple has a review of Objective-C 2.0 on its website, although it is worth noting that the iPhone version of Objective-C 2 does not include garbage collection. Basically, the difference is:

  • Garbage Collection (on Mac)
  • for (id object in collection)
  • Properties and Dot Syntax
  • Changes to low-level execution functions

Objective-C ++ is a compiler mode that allows you to mix C ++ code with Objective-C code in the same function body.

+9
source

A small wiki told me:

  • Objective-C: C-style programming language with Smalltalk-style messaging.
  • Objective-C ++ : The GCC interface, which adds Objective-C extensions to C ++, adds to C.
  • Objective-C 2.0 : A revision of the Objective-C language, which includes state-of-the-art garbage collection, syntax improvements, runtime performance improvements, and 64-bit support. Also added features such as properties and quick counters. Currently only for OSX.
+2
source

Source: https://habr.com/ru/post/1298950/


All Articles