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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Assertions Date: 1999/05/12 Message-ID: <1999May12.163911.1@eisner.decus.org>#1/1 X-Deja-AN: 477154776 X-Nntp-Posting-Host: eisner.decus.org References: <3736D243.1EEBF1AB@globalnet.co.uk> <3736F549.E3DDCDEB@pwfl.com> <7h83lc$rd$1@nnrp1.deja.com> <3739CECA.6A49865B@averstar.com> X-Trace: news.decus.org 926541563 13895 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1999-05-12T00:00:00+00:00 List-Id: In article <3739CECA.6A49865B@averstar.com>, Tucker Taft writes: > In any case, here is a strawman: > > pragma Assert(boolean_expression [, string_expression]); > > This pragma may appear anywhere a declaration or a statement may > occur. If the check Assertion_Check is suppressed, this pragma > has no effect. If the check Assertion_Check is not suppressed, > this pragma's elaboration/execution is equivalent to the > execution of: > > if boolean_expression then > System.Assertions.Raise_Assert_Failure([""|string_expression]); > end if; I would have expected: if NOT boolean_expression then since I would expect to say: pragma Assert(Expression_I_Expect_To_Be_True); Larry Kilgallen