[DGD] Re: Copying objects in DGD
Jamin Vander Berg
jaminv at softhome.net
Sat Jan 11 20:41:11 CET 2003
So the best way to do it would be to offer "copy" as a member function, kind of like create, that each object calls its base class and then copies any further values (and should probably make sure its the same type of object). Doesn't seem to horribly reliable, because if one inheritable or object fails to implement it properly, its would either fail or be inconsistant, but, if implemented properly, it *should* work just fine...
Best I can think of because there's nothing saying that an object you want to copy isn't inherited several levels above the object you're actually trying to copy.
--jaminv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.dworkin.nl/pipermail/dgd/attachments/20030111/203ce3dc/attachment.html>
More information about the DGD
mailing list