[fpc-pascal] Cloning objects?

Howard Page-Clark hdpc at talktalk.net
Thu Mar 20 00:31:58 CET 2014


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.




More information about the fpc-pascal mailing list