Thread: Operator Precedence?

  1. #46
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    PC-lint is a very complex tool, easily as complex as a compiler.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #47
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    $230 is expensive. That doesn't mean it's priced incorrectly or not worth it.

  3. #48
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Agreed, but I was never hinting at that it was incorrectly priced.
    I just feel it's such a shame that the price is so high. Many will not be able to afford such a thing. To companies, it's like sticks and stones, but to private users who just develop on their free time...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #49
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by laserlight View Post
    To put that in perspective, Visual Studio 2008 Standard edition costs $299. So, just as such a developer would be forced to do without PC-lint due to the cost issues, he/she would be forced to make do with Visual Studio 2008 Express edition, despite it being targeted at hobbyists and students instead of professional developers. That's life for a lone developer struggling to balance the budget, I guess
    Well VC++ express is free. So if I'm just writting a program for myself at home, that's probably what I'm going to use since I don't really need all the bells & whistles of the Pro edition. But I'd still like to see if I have any bugs that the compiler (for some strange reason) doesn't tell me about. I think this would also be great for students who could barely even notice a simple bug, let alone these subtle ones.
    Anyways, I hope someone at the VC++ team of Microsoft is reading this.

    I don't have a Windows port of gcc available, but do the errors Dave found also get reported on the Windows gcc compilers? If so, that might be one free alternative.

  5. #50
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Quote Originally Posted by cpjust View Post
    I don't have a Windows port of gcc available, but do the errors Dave found also get reported on the Windows gcc compilers? If so, that might be one free alternative.
    What I posted was from Code::Blocks' MinGW gcc.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  6. #51
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I just feel it's such a shame that the price is so high. Many will not be able to afford such a thing. To companies, it's like sticks and stones, but to private users who just develop on their free time...
    A. cry all the way to the bank.
    B. use splint.

    Choose one.

  7. #52
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    $230 is really not a lot of money. It's a bargain! Even for the lone, struggling, non-student developer.

    Cutting on Saturday nights, juggling here and there on spurious expenses, I can imagine a low income programmer being able to buy PC-Lint after, say, 6 months of saving for it. That's really a worst case scenario.

    Looking at those $230 as an investment and not money you throw away in a pair of pants or getting out to the movies, is the key.

    EDIT: The only annoying tidbit being perhaps that you get the same for free if you change to linux
    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.

  8. #53
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Er... what?! O_o

    Splint isn't even comparable to PC-Lint for C++ source, and I don't know of anything Splint will catch that 'g++ -Wall -Wextra' will not. Heck, for one thing, Splint will happily pass invalid C++ source.

    If you're not talking about Splint I'd love to know what you are talking about.

    Soma

  9. #54
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by phantomotap View Post
    Splint isn't even comparable to PC-Lint for C++ source
    That's because Splint doesn't analyze C++ code, but C. However it can, and will detect many problems common to both programming languages if you take the time to set it up to ignore most C++ constructs.

    The point Citizen tried to put across, I believe, is cough up the money or go by with unsuitable tools that will demand a lot of configuration. Or, go by without 'em.
    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.

Popular pages Recent additions subscribe to a feed