Bypassing the postblit?
Ritu
ritu at metaprogramming.net
Thu Dec 26 17:43:36 PST 2013
> D struct copying is done by a bit-level copy of the source. A
> postblit - the closest we have to a struct copy constructor -
> is only run if you specify one yourself, i.e. there is no
> default one to disable.
Thanks John
Ok. Let me rephrase the question. I do not want to perform
bit-wise copy of my struct, but I want to specify my own copy
semantics. Is there a way?
Regards
Ritu
More information about the Digitalmars-d
mailing list