[phobos] [D-Programming-Language/phobos] 4f28db: not really pure

Jonathan M Davis jmdavisProg at gmx.com
Mon Jun 27 12:25:30 PDT 2011


On 2011-06-27 11:28, Walter Bright wrote:
> I understand and agree, but the previous code was so broken it would allow
> assignment through the 'this' pointer.

Not being able to assign to member variables in a weakly pure function will be 
devastating to purity. If we can't do it, we can't do it, but it's a huge 
setback if we can't. Or do you mean something else by assignment through the 
this pointer?

- Jonathan M Davis


More information about the phobos mailing list