D - Are class invariants implemented yet?
- Russ Lewis (15/15) Sep 25 2002 If so, I think I found another bug.
- Patrick Down (3/14) Sep 25 2002 Take the () off the end of invariant
- Russell Lewis (3/21) Sep 25 2002 Thanks, that fixed it.
- Walter (3/6) Sep 25 2002 Oops!
- Burton Radons (6/17) Sep 25 2002 DLI does not generate code for class invariants or in/out contracts yet....
If so, I think I found another bug. DLI gives the error "{ } statement expected after invariant" on the following code: class Foo { invariant() { assert(true); } } -- The Villagers are Online! http://villagersonline.com .[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ] .[ (a version.of(English).(precise.more)) is(possible) ] ?[ you want.to(help(develop(it))) ]
Sep 25 2002
Russ Lewis <spamhole-2001-07-16 deming-os.org> wrote in news:3D91C09D.A84CE13E deming-os.org:If so, I think I found another bug. DLI gives the error "{ } statement expected after invariant" on the following code: class Foo { invariant() { assert(true); } }Take the () off the end of invariant
Sep 25 2002
Patrick Down wrote:Russ Lewis <spamhole-2001-07-16 deming-os.org> wrote in news:3D91C09D.A84CE13E deming-os.org:Thanks, that fixed it. The spec shows parentheses, though.If so, I think I found another bug. DLI gives the error "{ } statement expected after invariant" on the following code: class Foo { invariant() { assert(true); } }Take the () off the end of invariant
Sep 25 2002
"Russell Lewis" <spamhole-2001-07-16 deming-os.org> wrote in message news:3D91D764.7060104 deming-os.org...Oops!Take the () off the end of invariantThanks, that fixed it. The spec shows parentheses, though.
Sep 25 2002
Russ Lewis wrote:If so, I think I found another bug. DLI gives the error "{ } statement expected after invariant" on the following code: class Foo { invariant() { assert(true); } }DLI does not generate code for class invariants or in/out contracts yet. The only contracts supported are unittests. It's on my TODO; there's nothing really holding it back (the machine just needs a place to hook in out blocks for return statements, and these don't affect exceptions) but for time.
Sep 25 2002