core.exception.InvalidMemoryOperationError@(0)

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 26 08:45:54 PST 2015


On Monday, 26 January 2015 at 15:54:12 UTC, Bayan Rafeh wrote:
> I apologize, I thought the point of invariant was to ensure 
> correctness of the
object's state

It is simply matter of "internal correctness" vs "in-program 
correctness". Sorry, documentation should probably mention that 
explicitly. I have created a documentation PR :  
https://github.com/D-Programming-Language/dlang.org/pull/851



More information about the Digitalmars-d-learn mailing list