[fpc-pascal] Clone a instance of object

Zaher Dirkey parmaja at gmail.com
Mon Sep 23 15:28:57 CEST 2013


On Mon, Sep 23, 2013 at 12:58 PM, Graeme Geldenhuys <graeme at geldenhuys.co.uk
> wrote:

>
> Also be careful about the pitfalls of cloning a class. eg: How you want
> to handle more complex cases. eg: Cloning a class with a reference to
> another class, or cloning a class with an embedded class (field), etc...
> tiOPF's implementation allows the developer to decided how such cases
> should be handled.


​The idea is simply than needs to use a stream or RTTI, it is like a
record, if looked at an object like as a record but it is inheritable.
​Compile can now every object body, and do the assigning as record assign.
​
That's the feature I like to have. ​

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


More information about the fpc-pascal mailing list