Clone et al will normally work, but there are some cases where they won't work. Even worse, there are cases where they will partially work in which case you'll get bitten a long way down the line by obscure "can't happen" bugs.
In the general case, you need to use the object's clone() method, and if it doesn't have one - patches welcome!
In reply to Re^2: How to duplicate objects?
by DrHyde
in thread How to duplicate objects?
by rapide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |