Today while reading Writing better Regular Expressions in PHP I learned that meta characters are treated as literals in character classes. So
'/^(\d[.]\d)$/' will match
'1.2' but not
'1x2'. Who knew!?
This was fun: Book Review: Fussell On Class. It’s about the class system in America and its signals.
I’ve been wondering what happens when a derived class defines a virtual destructor. What about its base destructors? Are they called? If so, when? I finally read the right paragraph in The C++ Programming Language (pg 70):
A virtual destructor is essential for an abstract class because an object of a derived class is usually manipulated through a pointer to a base class. Then, the virtual function call mechanism ensures that the proper destructor is called. That destructor then implicitly invokes the destructors of its bases and members.
Still not sure when the bases and members are destructed, presumably after the derived virtual destructor…
Am reading The C++ Programming Language, 4ed, by Bjarne Stroustrup and his sixteenth suggestion for Java programmers (pg 21) is:
A C++ nested class does not have access to an object of the enclosing class.
I didn’t know that!
Learning about the functions available in The PDOStatement class. The API seems to have changed when I compare the sample code in this article to the API reference. In any event I was able to figure out how to do what I wanted to do!
A pretty nifty feature of MediaWiki tables is the class=”wikitable sortable” specification. Adding the ‘sortable’ class automatically makes the table sortable. Handy!
I’ve updated our Members table as well as a few other tables on the wiki to use the ‘sortable’ feature.