This is an old revision of the document!
STATUS updates
Some links of interest:
I remember this used to seem so confusing in the past… but having played so heavily with pointers, linked lists, and manipulations therein, this suddenly wasn't any bit of a problem at all.
Working on code for a custom number class:
number & number :: operator+(const number &rhs) { this -> add(rhs); return *this; } number & number :: operator=(const number &rhs) { if (this != &rhs) // with equal, need to check for self-references { delete this; // deallocate what we currently have memcpy(this, &rhs, sizeof(number)); // replace with copy } return *this; }