digitalmars.D - When is invariant created?
I don't have any invariant on my classes however all the methods make a call to _D9invariant12_d_invariantFC6ObjectZv and a loop is executed there what's that for? Ant
Sep 20 2004
"Ant" <duitoolkit yahoo.ca> wrote in message news:pan.2004.09.21.01.51.57.386906 yahoo.ca...I don't have any invariant on my classes however all the methods make a call to _D9invariant12_d_invariantFC6ObjectZv and a loop is executed there what's that for?Because invariants are inherited, a default invariant is created if there isn't a user supplied one, and that default will call the base class' invariant. Compiling with -release will turn that off.
Sep 21 2004
On Tue, 21 Sep 2004 16:05:47 -0700, Walter wrote:"Ant" <duitoolkit yahoo.ca> wrote in message news:pan.2004.09.21.01.51.57.386906 yahoo.ca...thanks, the release flag! I'm embarassed, it's on the docs... AntI don't have any invariant on my classes however all the methods make a call to _D9invariant12_d_invariantFC6ObjectZv and a loop is executed there what's that for?Because invariants are inherited, a default invariant is created if there isn't a user supplied one, and that default will call the base class' invariant. Compiling with -release will turn that off.
Sep 21 2004