Thread: what if....

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    what if....

    if we took all the funtions away from c++ would it then be the same as any other language or are there differences between languages that go beyond the diffences in c++ and other languages

    from joe goss ^.^
    The woundeful Joseph Goss,,,
    e-mail me "[email protected]"
    if you want
    Ermmm,,... hello anyone there?
    i am 15

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    If you have C++ and another language, then you have two different languages.

    gg

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    the syntax of a language is probably more important than the function libraries associated with it. Although many functions are actually considered part of the language, the answer is that they would still be very much two different languages.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #4
    root
    Join Date
    Sep 2003
    Posts
    232
    >the syntax of a language is probably more important than the function libraries associated with it.
    Not really. Unless the syntax is totally whack, a large and useful library makes the language more appealing. The syntax is smaller and easier to learn because everything possible would be in libraries (like C) and the language as a whole would be easier to port since the compiler/interpreter would be way simpler. But I agree that syntax is important for pleasant use of the language. That's probably why I don't like most of C++'s additions to C.
    The information given in this message is known to work on FreeBSD 4.8 STABLE.
    *The above statement is false if I was too lazy to test it.*
    Please take note that I am not a technical writer, nor do I care to become one.
    If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
    Don't assume that I'm ever entirely serious or entirely joking.

  5. #5
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Perhaps I wasn't clear. I was saying that the syntax is the base of the language. That's what I meant by more important. Only to stress that without the function libraries it is still a separate language (see the original question).
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I'd say computer languages are somewhat like human languages. Some languages are similar... like English, Spanish, and French, and some are very different... Like English and Chinese.

    I don't think there is a human-language analogy for C vs C++. You could almost say it's like British-English vs American-English... But, although American-English derived from British-English, it was NOT an attempt to extend and improve on it!

    Lots of things very common among computer languages... like math... x = 1 + 2 could be dropped-into most programs. And, most use English (or English-like) keywords and library function names.

    It's always easier to learn your 2nd computer language, because all programs are a sequence of instructions, and all real programming languages can loop and branch.

Popular pages Recent additions subscribe to a feed