What's "Objective C", and how is it different than C or C++? I saw an article on a C compiler that mentioned it compiles C, Objective C, C++, Fortran, etc.
Thanks,
Printable View
What's "Objective C", and how is it different than C or C++? I saw an article on a C compiler that mentioned it compiles C, Objective C, C++, Fortran, etc.
Thanks,
A friend of mine is programming in Objective C, he said that it's a cleaner objected oriented language than C++, less complex and more flexible. After looking at the syntax though from the link he provided i backed out though on thought of learning it in soon future, also it does use runtime typing which i think would be a performance hog and insecure if you compare to C++
http://www.slip.net/~dekorte/Objecti...ion/Index.html
I've heard of this language before, and I knew read or thought of it being more flexible than C++.
Please explain.
these features got my attention first time I saw it,
- The possibility to load class definitions and method definitions (which extend a class) at run time.
- Objects are dynamically typed: Full type information (name and type information of methods and instance variables and type information of method arguments) is available at run time. A prime example of application of this feature is `-loadNibSection:owner:' method of NEXTSTEP's Application class.
I haven't gone further into the language because the syntax looked so alien from ANSI C which it it was suppose to derive from, the syntax is taken from Smalltalk which I have no idea of.
SmallTalk, is basically a sibling of Fortran (i think), its a different approach to OOP. Which I think would help you understand OOP from a different prespective, but the syntax is just too much... I wouldnt want to go from one syntax to another completely different and then back... its just too confusing.
But its definately something to look at... its not a WIDELY used language like C++ :D but that doesnt mean u wont learn anything from it.
Ive also heard of Python to be a completely different approach also. So these languages all go at different approaches to OOP programming which is relatively new.
Thanks for the info, guys.:D
I've been meaning to learn Python - I bought a book and installed ActiveState's version, but I haven't found the time...:(
Python is just odd =).
The Type info sounds a lot like RTTI.
Z.