Live data from Hacker News

Viewing profile — chandlerc

chandlerc

HN member
Joined
Mon, May 23, 2011, 10:14 PM UTC
HN karma
59
Public activity
5 items

About chandlerc

No profile information was provided.

Recent public activity

  1. comment
    Comment #2578860

    Most of the cases we ran into were metaprogramming techniques which test whether an expression is a valid null pointer constants. These got innocently applied to 'false' and trigge…

  2. comment
    Comment #2578149

    GCC definitely has a warning for 0.5 -> int (likely -Wconversion, but I've not checked). It also has a warning for setting a pointer to "false" (-Wconversion-null). However, turnin…

  3. comment
    Comment #2577876

    That's the whole point. =] This is a surprising aspect of C++: the shift expression doesn't have the type of the declared variable. The integer literals we are shifting are of 'int…

  4. comment
    Comment #2577832

    Doh! Good catch, comment updated. =[ Maybe we do need Clang-for-comments as well as Clang-for-C++ code.... ;]

  5. comment
    Comment #2577821

    I would expect many of these tools to catch these types of bugs. The challenging thing for us has been to catch only bugs, and to catch them very fast during normal compilation. A …