4
votes
Replication
Yet Another Programming Blog
– I must say, I am still pretty exited by the extended RTTI in Delphi 2010. It makes life so much easier in many circumstances. “Cloning” (I call it replication) is one of those. Say hello to TReplicator<T> (in DeHL.Replication). It can take any type and create an exact copy (including deep cloning for complex types). The following example should pretty much explain what and how: uses SysUtils, DeHL.Replication, DeHL.Collections.List; type { Define a test class } TData = class { Pointer to self } FSelf: TObject; { A chunck of bytes } FSomeData: ...
Statistics
|
Visits by Source |
User Actions |




