Re: How different is obj c from c++?
Stuart Redmann <DerTopper@web.de> wrote:
One could quite easily implement [language] as a simple library in C
Could people please stop arguing that? It's idiotic. Seems that whenever
someone compares any language in the universe to C, someone will argue
that the same things can be implemented in C.
Sure, you could probably implement something vaguely resembling runtime
introspection, reflection, compiler-generated properties (which can be
atomic, non-atomic, retaining, non-retaining, etc), inheritance, protocols,
messages, selectors, code blocks, exceptions (and try/catch blocks), public,
protected and private sections of classes, range-based loops, and so on,
but it would be neither simple (to either implement or use) nor very
efficient. (For instance, selectors would need to be strings rather than
being constructs that the compiler itself understands. These strings require
parsing and interpretation at runtime rather than being convertible to an
internal, efficient format at compile time, like an Objective-C compiler
does.)