Hacker News new | ask | show | jobs
by akjj 4532 days ago
C++ and Objective-C both began as preprocessors for C.
1 comments

Wow, it's surprising what you can do with it.
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.
Yes 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

> 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.