Welcome, Guest. Please login or register.

Author Topic: Teleportation  (Read 13631 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline uncharted

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1520
    • Show all replies
Re: Teleportation
« on: June 16, 2007, 03:29:05 PM »
Quote

Karlos wrote:
Quote
How can you copy something without knowing its current state?


Easy, make sure whatever it is implements the following:

Code: [Select]

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: