Temporary suspension of disbelief (invariant)

Walter Bright newshound2 at digitalmars.com
Tue Oct 26 17:25:20 PDT 2010


bearophile wrote:
> All this looks bug-prone, and surely hairy, but it looks potentially useful.
> Is it a good idea to design a class that uses such temporary suspension of
> the invariant?

An invariant that is not invariant is a meaningless attribute. It's like 
"logical constness" where classes claim to be const but aren't.


More information about the Digitalmars-d mailing list