Time to kill T() as (sometimes) working T.init alias ?

Walter Bright newshound2 at digitalmars.com
Mon Dec 10 03:02:40 PST 2012


On 12/9/2012 8:17 PM, Jonathan M Davis wrote:
> Not to mention, unless you can find ways to implement everything that you'd
> need a postblit or copy constructor to do without them and get rid of
> postblits, doing deep copies is going to be possible. And in the process of
> getting rid of postblits, you could easily end up disallowing other stuff which
> was useful and innocuous (e.g. something as simple as being able to print out
> when an object is copied when debugging).

Have you ever written a struct that requires a deep copy?

I have, and I always wound up redoing it so the deep copy was unnecessary.



More information about the Digitalmars-d mailing list