C++/Java/C#

This is a discussion on C++/Java/C# within the A Brief History of Cprogramming.com forums, part of the Community Boards category; It does seem to have a reserved word const. But no usage implemented. It's kind of odd... because I always ...

  1. #106
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,514
    It does seem to have a reserved word const. But no usage implemented.

    It's kind of odd... because I always heard that java never had const. But the keyword is classified as outdated.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #107
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,993
    As far as I know, Java never had the const keyword in use, but presumably the Java language designers wanted to reserve the word for future use, or simply to ensure that programs would not have identifiers named const and thus confuse an influx of C++ programmers.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 8 of 8 FirstFirst 12345678
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21