Tech Off Post

Single Post Permalink

View Thread: Date loop backwards
  • User profile image

    ScanIAm wrote:
    If the compiler can figure out that I've got code that won't ever execute or notice that I'm comparing an int to a null, it should be able to find these conditions.

    The compiler doesn't know that in this case. All it knows is that you're ignoring the return value, which is a common idiom in code.