Slashdot Mirror


User: Dr.+Eldon+Tyrell+TC

Dr.+Eldon+Tyrell+TC's activity in the archive.

Stories
0
Comments
5
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5

  1. Re:C is C++ but, C++ is not C on How Much Java in the Linux World? · · Score: 0

    That broke with C99.

  2. Re:C/C++, not java on How Much Java in the Linux World? · · Score: 0
    Actually, C/C++ is a language. Where C++ is an incremental improvement over C, C/C++ is a mere fraction of C. (If C were 3 then C++ would be 4, thus 3/4.)

    This is the common mistake people make. Since C99 (the latest standard for C and therefore the one in effect), C is no longer a subset of C++. If you do not believe it, read the C and C++ standards or learn it the hard way by debugging. ;)

  3. Re:C/C++, not java on How Much Java in the Linux World? · · Score: 2, Informative
    "but some sort of cultural reason you feel C and C++ need to be kept seperate--presumably because you like one a more than the other."

    Yes, you can call C code from C++ and there is no problem as long as the C code still was compiled with a C compiler and then linked with your C++ code.

    The very problem starts when people take code written in C and compile it with a C++ compiler!

    Why? Because for the first look (and sometimes even the second) it works perfectly. But after a while debugging fuzzy problems you recognize that the syntax of the languages are indeed different and if the original programmer was not using a s**t load of brackets (not necessary in C) because he was aware that some morron someday might use a C++ compiler with this code, you are in trouble. This is why I am pointing this out: if you are not aware that they are indeed different you might get into trouble.

  4. Re:Excuse me? on How Much Java in the Linux World? · · Score: 1

    Obviously the OP felt like something called "C/C++" is "the heavily used language" ... I did not read "languages". ;-)

  5. Re:C/C++, not java on How Much Java in the Linux World? · · Score: 5, Insightful

    There is no such thing like C/C++! C and C++ are different languages with different standards.