problem implementing icloneable
Posted: Thu Dec 11, 2008 10:05 am
What's wrong with this code?
I get the following compiler error (translated from Spanish):
Simple.Clone(): "couldn't find an appropriate member to override"
If this is not the proper way to copy/clone in Cobra, then what is it? Maybe we could add it to the How-to section, as it is quite a common thing to do...
Regards,
Manuel
class Simple
implements ICloneable
def clone as Object is override
return Simple()
def main is shared
simple = Simple()
simple.clone
I get the following compiler error (translated from Spanish):
Simple.Clone(): "couldn't find an appropriate member to override"
If this is not the proper way to copy/clone in Cobra, then what is it? Maybe we could add it to the How-to section, as it is quite a common thing to do...
Regards,
Manuel