Re: __clone() implementation
| From: | Andi Gutmans | Date: | Tue, 03 Feb 2004 08:55:38 +0000 |
| Subject: | Re: __clone() implementation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7499@lists.php.net to get a copy of this message | ||
At 10:46 AM 2/3/2004 +0200, Stanislav Malyshev wrote:
ZS>> Both are valid points, and they both sound like the same problem from ZS>> two different angles. I think that the best approach would be to ZS>> first do an implicit clone (i.e., 'dumb' copy of all of the ZS>> elements), and then call __clone(), even if it exists. It should ZS>> solve both cases. If we do this, there's no reason for __clone to have parameter - $this should already have all the data one may need, not?You might have a point there. Andi