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
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
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
3 matches
Mail list logo