home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!sdd.hp.com!ux1.cso.uiuc.edu!moe.ksu.ksu.edu!cis.ksu.edu!saiid
- From: saiid@cis.ksu.edu (Saiid Paryavi)
- Newsgroups: comp.lang.eiffel
- Subject: Re: Semantics of invariants
- Date: 16 Dec 92 15:46:25 GMT
- Organization: Kansas State University
- Lines: 19
- Message-ID: <saiid.724520879@castor.cis.ksu.edu.cis.ksu.edu>
- References: <1992Dec15.213603.16406@bony1.bony.com>
- NNTP-Posting-Host: castor.cis.ksu.edu
-
- richieb@bony1.bony.com (Richard Bielak) writes:
-
- >Is the invariant supposed to be true *ALL* the time, once the object is
- >created?
-
- >If this is so, you can imagine each object having an "invariant-checker"
- >running continously on another processor.
-
- >Or is it OK to invalidate the invariant while inside the object's routines,
- >as long as the invariant is true on exit.
-
- >What if one object routine calls another? What about recursive routines?
-
-
- Invariants are checked at the time of object creation and every time a routine
- is exited. Invariants should not be checked during the execution of a routine`s
- body.
-
-
-