3 ms·
> Objective-C was a modification of the GCC developed by NeXT. No. Objective-C started out as a set of C Macros, then an actual pre-processor was created, mos
by mpweiher 11y ago
> Objective-C was a modification of the GCC developed by NeXT.
No. Objective-C started out as a set of C Macros, then an actual pre-processor was created, mostly to deal with uniquing selectors. Once the pre-processor was there it was used to create actual syntax.
Documented in "Object Oriented Programming: An Evolutionary Approach".[1] Still one of the best books on OO out there, because it treats OO as an architectural style with tradeoffs relative to other styles, rather than as a religion to be accepted (or nowadays as the devil to be cast into hell).
It also clearly describes the deliberate hybrid style that seems to be mostly forgotten now: object largely implemented in C, but connected via dynamic messaging. "Software-ICs".
I am somewhat surprised by seeing the 1986 release date, I guess I must have gotten it pretty soon after it was published. Used it as a template to implement an Objective-C pre-processor + runtime + basic classes on my Amiga (had just gotten a C compiler for it).
One of the reasons I got a NeXT was because NeXTStep was largely implemented in Objective-C, which to me meant they "got" it. And it also meant I could enjoy programming in Objective-C without having to maintain my own :-)
[1] http://www.amazon.com/Object-Oriented-Programming-Evolutionary-Brad-Cox/dp/B000MYICEU/ref=la_B000AP7MNI_1_1_twi_har_2?s=books&ie=UTF8&qid=1462486830&sr=1-1 http://www.amazon.com/Object-Oriented-Programming-Evolutiona...
- colejohnson66 11y ago> No. Objective-C started out as a set of C Macros, then an actual pre-processor was created, mostly to deal with uniquing selectors. Once the pre-processor was there it was used to create actual syntax. I'm curious. What did that early form of Obj-C look like?