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 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: Ray Blaak Subject: Re: Assertions Date: 1999/05/22 Message-ID: #1/1 X-Deja-AN: 480888259 Sender: blaak@LANGLEY References: <3736D243.1EEBF1AB@globalnet.co.uk> <3736F549.E3DDCDEB@pwfl.com> <7h83lc$rd$1@nnrp1.deja.com> <3739CECA.6A49865B@averstar.com> <1999May12.163911.1@eisner.decus.org> <373c862b@eeyore.callnetuk.com> <3742eba5@eeyore.callnetuk.com> X-Complaints-To: news@bctel.net X-Trace: news.bctel.net 927384614 209.52.142.33 (Sat, 22 May 1999 07:50:14 PDT) Organization: The Transcend NNTP-Posting-Date: Sat, 22 May 1999 07:50:14 PDT Newsgroups: comp.lang.ada Date: 1999-05-22T00:00:00+00:00 List-Id: I would suggest the name "Verify" for assertions intended to be runtime checks, and "Assume" for assertions intended to give info to the compiler. dale@cs.rmit.edu.au (Dale Stanbrough) writes: > For an assertion that I would like tested... [...] > pragma Assert (Balanced (Root)); > -- test this, die if it fails [...] > For an assertion that could be used by the compiler to optimise > the code > pragma Enforce (X in 1..9 or X in 20..29); [...] > The "Enforce" (I don't think this is a good name, but I can't > think of anything better) is used to extend the type system. > > One problem with the name "Assert" is that people have > different views about what it actually means. Robert Dewar > considers that "Assert" _should_ be able to be used for > optimisation purposes. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, blaak@infomatch.com The Rhythm has my soul.