An old topic (pun intended)
bearophile
bearophileHUGS at lycos.com
Sun Oct 16 17:43:44 PDT 2011
Timon Gehr:
> Eiffel does not do that either.
> (even though it _does_ have a built in deep copy feature)
>
> We don't have to over-engineer the feature, if somebody needs to
> deep-copy an object they can implement it themselves and use
> old(obj.deepCopy()).
I agree. A shallow prestate is quite better than not having it at all in D.
Lately C# has implemented DbC, prestate too. I don't know how, but it's worth taking a look.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list