• (nodebb)

    It's almost like they tried to invent reflection. You can query properties of the class to dynamically learn about the class.

    Serious brain damage there.

    The fact the OP tells us this idiom is used inconsistently everywhere suggests one "genius" had invented this at some prior job, brought it here, proselytized it to the unwashed mass of ordinary devs, most of whom never understood it well enough to use it right (or at least as rightly as such insanity could be used), then moved on to the next company & next project. Or was promoted to some executive manager of dev roles here and so was able to insist it be used, but not pay attention to how it was used.

  • (nodebb)

    Now, I know that they are running with RTTI enabled, and thus when they do a bad cast, dynamic_cast will throw a bad_cast exception? How do I know?

    Observation: An incorrect dynamic_cast on pointers returns NULL instead of throwing bad_cast.

  • (author) in reply to Steve_The_Cynic

    According to S5.iii it can indeed throw a bad cast.

Leave a comment on “Wages of Inheritance”

Log In or post as a guest

Replying to comment #:

« Return to Article