Re: [PHP] Generic cloner?

2001-02-08 Thread Richard Lynch
I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! You could probably use something like: function

Re: [PHP] Generic cloner?

2001-02-08 Thread Toby Butzon
Umm, not sure I understand the question completely... but following the code below, why not just assign the object to a new variable? That'd give you an exact copy with a lot less code... --toby Richard Lynch wrote: I'm wondering if there is an easy way to code a generic cloner at top

[PHP] Generic cloner?

2001-02-05 Thread Chien-pin Wang
Hi, I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! Chien-pin -- PHP General Mailing List