Requiring weak purity for opAssign, postblit

bearophile bearophileHUGS at lycos.com
Sat Dec 25 08:42:57 PST 2010


dsimcha:

> Does anyone see a problem with requiring opAssign and postblits to be
> weakly pure to solve this problem?

Time ago I have even suggested contracts (pre/post/invariants) to be pure (as Design by Contract asks), or at least class invariants to be const on default.

Bye,
bearophile


More information about the Digitalmars-d mailing list