0
votes
Deep copy clone object in Delphi
Yanniel's notes
– When I first took a look at the prototype design pattern in GoF(years ago), I realized that there was a big obstacle (challenge) to implement it in Delphi: How to write a routine to really clone (not just recreate) an object? In other words, how to perform a deep-copy of a living object in Delphi.There are approaches out there mimicking the deep copy by simply calling the constructor and reassigning the state of the object by hand (I don’t like it). There are others exposing that a deep copy could be accomplish for the descendants of TPersistent by calling the Assign method (I don’t like it ...
Statistics
|
Visits by Source |
User Actions |




