[fpc-pascal] Clone a instance of object
Michael Van Canneyt
michael at freepascal.org
Mon Sep 23 11:57:59 CEST 2013
On Mon, 23 Sep 2013, Zaher Dirkey wrote:
>
> On Mon, Sep 23, 2013 at 12:46 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> There is no such safe mechanism.
>
> The best you can do is make the properties published, and write an RTTI lookup routine that copies all Published values.
> I've done this several times, it works well for most situations.
>
>
> It is not the fastest way like assigning a record, can we ask it as a feature in FPC ?
It's impossible to do correctly.
Michael.
More information about the fpc-pascal
mailing list