Am 27.12.2014 16:11 schrieb "Marc Santhoff" <m.santh...@web.de>:
> Is there any way of cloning record and objects having only data fields?
> Or do I have to copy the (non reference) fields one by one as usual?

Shouldn't the normal assignment be enough for any non-reference (aka
non-managed pointers) fields?
Meaning first you simply assign your input record to the result (strings,
arrays and interfaces will be handled here) and then you update those
fields that should be "deep copied".

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to