From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA25602; Mon, 18 Feb 2002 18:06:08 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA26255 for ; Mon, 18 Feb 2002 18:06:07 +0100 (MET) Received: from beaune.inria.fr (beaune.inria.fr [128.93.8.3]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g1IH66502319 for ; Mon, 18 Feb 2002 18:06:07 +0100 (MET) Received: by beaune.inria.fr (8.8.8/1.1.22.3/14Sep99-0328PM) id SAA0000002179; Mon, 18 Feb 2002 18:06:01 +0100 (MET) Date: Mon, 18 Feb 2002 18:06:01 +0100 (MET) From: Damien Doligez Message-Id: <200202181706.SAA0000002179@beaune.inria.fr> To: cq@htec.demon.co.uk Subject: Re: [Caml-list] assertions and branch prediction Cc: caml-list@inria.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>From cq@htec.demon.co.uk Mon Feb 18 14:34:41 2002 >May I ask how >| _ -> assert (not true); () > >is different from > >| _ -> assert false; () > >??? >>From the manual: > As a special case, "assert false" is reduced to "raise (Assert_failure > ...)", which is polymorphic (and is not turned off by the -noassert > option). In contrast, "assert (not true)" is not polymorphic (but you don't care when it is followed by a semicolon), and it is turned off by -noassert like all normal assertions. -- Damien ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners