Compartilhar via


Straight from the source

One of the truly great things about working here is that Distinguished Engineers take time out of their busy schedules to answer random questions. Many thanks to Anders and Scott for sharing their insights.

Incidentally, as I've mentioned before, I'll sometimes ask interview candidates how good a C++ programmer they are on a scale from one to ten. If they say "nine", I'll ask them the kind of question that I asked Scott and see what they say.

(And yes, I was for many years known as "that guy who's always wearing the Tilley hat". I still have many Tilleys at home, but I usually only wear them when I'm sailing now.)

Comments

  • Anonymous
    January 14, 2005
    Note that your question itself makes an incorrect statement:

    "... initializing derived class members using constructor arguments before base class constructors run (which seems good, and is what C++ does)."

    C++ does not do it this way. In C++, base class constructors run first, then non-static data members are initialized, and finally the constructor body runs. See C++ standard 12.6.2/5
  • Anonymous
    January 14, 2005
    The comment has been removed
  • Anonymous
    January 14, 2005
    Stan Lipmann's take on this is also quite interesting:
    http://blogs.msdn.com/slippman/archive/2004/01/28/63917.aspx

    with a followup:
    http://blogs.msdn.com/slippman/archive/2004/01/30/65056.aspx
  • Anonymous
    January 14, 2005
    http://images.google.com/images?q=tilley%20hat
  • Anonymous
    January 15, 2005
    That's the one. My Tilley of choice is the T3G -- the one with the green underbrim and aussie-style snap-up sides.
  • Anonymous
    February 03, 2005
    The comment has been removed
  • Anonymous
    August 26, 2009
    The comment has been removed