[fpc-pascal] Clone a instance of object

Zaher Dirkey parmaja at gmail.com
Mon Sep 23 11:54:24 CEST 2013


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 ?​

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130923/6f54205a/attachment.html>


More information about the fpc-pascal mailing list