digitalmars.D - D vs Objective C?
- Robert Jones (1/1) Jul 26 2004 How does D (hold up to/compare with) Objective C?
- Matthias Becker (6/7) Jul 27 2004 You can't compare them.
- Jarrett Billingsley (5/5) Jul 27 2004 "message eating nil"
- Matthias Becker (5/10) Jul 28 2004 Well, nil is something like null. But if you call a message on it, the r...
How does D (hold up to/compare with) Objective C?
Jul 26 2004
How does D (hold up to/compare with) Objective C?You can't compare them. Objective C is very different from D. There is a language called Objective C++, which is just a mix of C++ and Objective C. This is possible and usefull as Objective C's class system is so different from that of C++. You don'thave things like the message eating nil, or any that dynamic thing in D.
Jul 27 2004
"message eating nil" that sounds like something you wouldn't want to meet in a dark alley. something i wondered - is objective C a true extension to the compiler or is it just a fancy preprocessor? i wonder because the syntax is so weird, and it would make sense if it were weird for easy preprocessing.
Jul 27 2004
"message eating nil" that sounds like something you wouldn't want to meet in a dark alley.Well, nil is something like null. But if you call a message on it, the result is just nil rather than an exception. So you don't need stuff like the null object pattern.something i wondered - is objective C a true extension to the compiler or is it just a fancy preprocessor? i wonder because the syntax is so weird, and it would make sense if it were weird for easy preprocessing.I'm not sure. Perhaps at first it was just a preprocessor. The first C++ compilers just compiled to C, too.
Jul 28 2004