These notes are for people who have not used C++ in a long time – like myself.
Major interpreters and virtual machines written in C++ include:
Rule of Three – if a class requires one or more of these, then it probably needs all three:
Initializer lists
MyClass::MyClass():someMemberOtherType(1,'param') {}
There is no true concept of null or nil. NULL
is simply a macro that expands to the number 0.
A const function e.g. someFunc(param) const {}
makes it a compiler error for class function to change a member variable of the class.