At 01:26 PM 2/2/2004 -0500, Adam Bregenzer wrote:
On Mon, 2004-02-02 at 13:18, Stephane Drouard wrote:
> Another idea for case 1 could be to be able to call parent::__clone
> even if the class does not implement it and have the bit for bit copy
> (but just for the base class).

I also think a default __clone method that does a bit for bit copy would
be a good thing.  What if I do $copy = clone $some_obj; when $some_obj's
class and all its parent classes do not implement __clone?  This could
be important if someone were to write proper php5 code that used classes
written for php4.

That already happens today (or it should).


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to