3 ms·
C++ and Objective-C both began as preprocessors for C.
by akjj 13y ago
C++ and Objective-C both began as preprocessors for C.
- NAFV_P 13y agoWow, it's surprising what you can do with it.
- tbirdz 13y agoJust to clarify a bit, C++ and Objective were not written in the C pre-processor, but rather implemented as their own pre-processor program, analogous to Qt's moc.
- craigching 13y agoYes like Cfront [1]. I used that back in the day, the pain of it caused me to rewrite all my C++ in C though :p Call me a coward! [1] -- http://en.wikipedia.org/wiki/Cfront http://en.wikipedia.org/wiki/Cfront
- NAFV_P 13y ago> Just to clarify a bit, C++ and Objective were not written in the C pre-processor, but rather implemented as their own pre-processor program, analogous to Qt's moc. I bet these pre-processor programs were themselves written in C.