开发者

Differences between Objective-C vs. Objective-C 2.0 [closed]

开发者 https://www.devze.com 2022-12-17 05:26 出处:网络
开发者_运维百科 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely so
开发者_运维百科 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

I reserved 2 library books which came on the same day. I saw them on the shelf and realized that they were the same except one was about ObjC and one was about ObjC 2.0.

Also, what is the Objective-C++?


Apple has an overview of Objective-C 2.0 on its Web site, though it's worth noting that the version of Objective-C 2 on the iPhone doesn't include garbage collection. Basically, the differences amount to:

  • Garbage collection (on the Mac)
  • for (id object in collection)
  • Properties and dot-syntax
  • Changes to the low-level runtime functions

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


A little wiki told me:

  • Objective-C: a C-style programming language with Smalltalk-style messaging.
  • Objective-C++: a GCC front-end which adds to C++ the extensions Objective-C adds to C.
  • Objective-C 2.0: a revision of the Objective-C language that includes modern garbage collection, syntax enhancements, runtime performance improvements and 64-bit support. Also adds features such as properties and fast enumerators. Currently only for OSX.
0

精彩评论

暂无评论...
验证码 换一张
取 消