[Issue 13710] Invariants not enforced on methods from alias this
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 11 06:29:27 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13710
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
It's not just with alias this. Any modification of a member variable outside
using the methods can result in breaking the invariant.
I think it's not a bad idea to mention the pitfalls, but I don't think alias
this is special in that regard.
--
More information about the Digitalmars-d-bugs
mailing list