Ruling out arbitrary cost copy construction?

dsimcha dsimcha at yahoo.com
Fri Oct 29 10:18:37 PDT 2010


== Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s article
> To recap:
> 1. Arbitrary cost copy construction:
> + Makes value types easy to define: just hook the copying code into
> this(this)
> + Is familiar to programmers coming from C++
> + If it fails, fails early, not surprisingly during a later operation

BTW, I don't see why failing during a variable assignment is any less bad than
failing during any other seemingly innocuous operation.


More information about the Digitalmars-d mailing list