[fpc-pascal] Assign() vs AssignTo()

Martin Schreiber mse00000 at gmail.com
Thu Feb 11 17:27:54 CET 2016


On Thursday 11 February 2016 17:17:32 Graeme Geldenhuys wrote:
>
> Now the other thing that surprised be, I thought TPersistent.Assign()
> automatically handles protected properties (via RTTI) - thinking that
> descendants automatically get such functionality for free. But reviewing
> the RTL code, I see Assign() and AssignTo() really has no functionality
> implemented by default.
>
Correct, it depends much on the actual classes what should happen by 
calling "assign()". So "tpersistent" does nothing by default.

Martin



More information about the fpc-pascal mailing list