From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e5c102037393131 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Assertions Date: 1999/05/21 Message-ID: <7i2evk$uao$1@nnrp1.deja.com>#1/1 X-Deja-AN: 480330998 References: <3736D243.1EEBF1AB@globalnet.co.uk> <3736F549.E3DDCDEB@pwfl.com> <7h83lc$rd$1@nnrp1.deja.com> <3739CECA.6A49865B@averstar.com> <7hqe7m$q7i@sjx-ixn1.ix.netcom.com> <3742eba6@eeyore.callnetuk.com> <7hv6bb$1l9@dfw-ixnews6.ix.netcom.com> <7i2015$jut$1@nnrp1.deja.com> <7i27tt$hn@dfw-ixnews11.ix.netcom.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 166.72.71.94 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri May 21 02:04:37 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-21T00:00:00+00:00 List-Id: In article <7i27tt$hn@dfw-ixnews11.ix.netcom.com>, Richard D Riehle wrote: > I agree that it is possible that some assertions might be > checkable at compile time. That misses the point, Eiffel assertions are not about checking (either at compile time or at run time). They are formalized comments stating certain static properties of the program. If one of these comments lies, this is a bug in the program. One of course wants to debug programs, so mechanisms like testing assertions at run time etc are useful for debugging the assertions (as well as the rest of the code). But you really have to get out of the habit of thinking of them as having much to do with the check-this-assertion-at run-time type gizmo which is what most of this thread has been discussing. As I said earlier, assertions mean many different things to different people :-) --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---