4
votes
Vote UpVote

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: ...
Favorite? Off-Topic? alex @ 2010-03-18 23:50

Statistics

Visits: 652
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Aleksey Timohin
jamiei
Mohammed Nasman
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)