Vote UpVote

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 ...
Favorite? Off-Topic? Yanniel @ 2012-02-03 15:50


Visits: 571
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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