Quote:
When it comes to Object-Oriented languages, take Objective-C, the most versatile, best-designed object-oriented language available to date. Messaging wins over functions as class members any time. The other thing, run-time typing; id allows you to specify a type to be resolved at run-time, allowing more freedom in your code.
[/b]
|
when you said "resolved at run-time", what do you mean?
it allows you to "cast" a type at run-time? i think C++ can do this with dynamic cast, but i am not 100% sure and if you are talking about OO, do you think casting shouldn't be a part of any good OOD?
I think C++ is better since both Objective-C and C++ support RTTI. Unless resolved at run-time means something that isnt RTTI