Results 1 to 7 of 7

Thread: What's Objective C?

  1. #1

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032

    What's Objective C?

    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,
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Megatron
    Guest
    I've heard of this language before, and I knew read or thought of it being more flexible than C++.

    Please explain.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Flexibility

    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 `-loadNibSectionwner:' 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.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    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++ 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.
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  6. #6

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Thanks for the info, guys.

    I've been meaning to learn Python - I bought a book and installed ActiveState's version, but I haven't found the time...
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  7. #7
    Zaei
    Guest
    Python is just odd =).

    The Type info sounds a lot like RTTI.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width