On 19/03/2014 22:01, Timothy Groves wrote:
Is there a drop-dead simple way to clone an object?
The convention established in Delphi for TPersistent descendants is to provide an Assign method to do this, so for TPersistent descendants (components, controls etc.) you can just override this method. I know of no such method provided above TPersistent in the TObject hierarchy.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal