1
vote
Deep copying (cloning) objects in Delphi
Yanniel's notes
– [More Delphi articles by Yanniel at http://www.yanniel.info/p/delphi-programming.html] 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 ...
Statistics
|
Visits by Source |
User Actions |




