Posted by: rmn on: 08/09/2009
How would you like the next piece of code?
Posted by: rmn on: 06/09/2009
Let’s have a better look at native arrays.
Posted by: rmn on: 04/09/2009
Many times we are required to define both a copy constructor and an assignment operator (for example: according to the rule of three, if we need one we are likely to need the other). The two will probably share a pretty common code, if not exactly the same. So what we will do in many [...]
Posted by: rmn on: 01/09/2009
A final (or frozen) class is a class that can’t be further extended by inheritance. In many languages we have different keywords for such behaviour, such as “final” in Java, or “sealed” in c#. Unfortunetly we don’t have such construct in c++; but we can use other mechanisms to easily achieve this goal.
Recent comments