On 2012-12-09 15:45, Dan wrote:
Phobos can and should have a general dup function, capable of duping
(i.e. recursive deep copy) structs without requiring any effort from
struct developers.
[snip]
I think much of this functionality could be shared with serialization. A
few questions and comments.
* Are array slices properly handled
* I think there need to be a way to explicitly say that a given field
and a whole struct shouldn't be duped
* All the public strings used for mixins should be templates
Orange serialization library, supports classes as well:
https://github.com/jacob-carlborg/orange
--
/Jacob Carlborg