For this particular app (its a multi-language code generator for process control modeling) I don't really have a lot of hierachies unfortunately. But, about the third time I cut and paste my generic copy() function I figured there must be a better way.
I like your copy verion - it is much more compact. I think next time around I would abstract everything from a 'mother of all objects' class.
It's still too bad the language doesn't build something in.
In reply to Re: •Re: Copying Objects
by lapointd
in thread Copying Objects
by lapointd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |