Requiring weak purity for opAssign, postblit

dsimcha dsimcha at yahoo.com
Sat Dec 25 08:19:32 PST 2010


I've been thinking about adding purity to various parts of Phobos and one
thing that limits this in the case of containers is templated containers,
arrays, etc. that may be instantiated with a user-defined type.  In theory,
even assigning/copying a user-defined type could be impure.  Does anyone see a
problem with requiring opAssign and postblits to be weakly pure to solve this
problem?


More information about the Digitalmars-d mailing list