Temporary suspension of disbelief (invariant)
Walter Bright
newshound2 at digitalmars.com
Wed Oct 27 13:41:10 PDT 2010
Fawzi Mohamed wrote:
> the only thing is that the invariant is not checked *after* those method
> that destroy the object, it will be ok to require a special name for
> that method (for example destroy, dealloc or similar) if you want to
> avoid misusage.
There is a method that does that, it's called the destructor. An invariant is
not checked after the destructor is run.
More information about the Digitalmars-d
mailing list