Karlos wrote:
How can you copy something without knowing its current state?
Easy, make sure whatever it is implements the following:
class Cloneable {
public:
virtual Cloneable* clone() = 0;
virtual ~Cloneable() {}
};
and leave it up to the thing itself to worry about how it is copied ;-)
You see, if God had used Java then objects would only need to implement the empty interface Serializable and Moto wouldn't have any teleportation issues :-)
Let the Holy war begin!!!! :lol: