Thread: C++/Java/C#

  1. #106
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    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.
    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
    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.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed