Re: [PHP-DEV] The __clone Wars

2004-01-19 Thread George Schlossnagle
On Jan 19, 2004, at 3:52 PM, [EMAIL PROTECTED] wrote: In other words, should it be like this: Yes. P.S. Perhaps the $this object should already be set using the default implementation, and then the user could override certain properties if he so wishes; I believe the preliminary documentation

[PHP-DEV] The __clone Wars

2004-01-19 Thread lingwitt
(Sorry for the subject, I couldn't resist). It seems that the parent class's variables are not being copied per bit by the default implementation, so how should a superclasses __clone() method be dealt with? In other words, should it be like this: public function __clone() { $this = par