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 SAA12534; Wed, 31 Oct 2001 18:10:14 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA12577 for caml-list@pauillac.inria.fr; Wed, 31 Oct 2001 18:10:13 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA29855 for ; Tue, 30 Oct 2001 23:17:49 +0100 (MET) Received: from sarg.ryerson.ca (sarg.ryerson.ca [141.117.18.117]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9UMHmb16398 for ; Tue, 30 Oct 2001 23:17:49 +0100 (MET) Received: from sarg.ryerson.ca (dmason@localhost) by sarg.ryerson.ca (8.11.2/8.11.2) with ESMTP id f9UMHbF07299 for ; Tue, 30 Oct 2001 17:17:37 -0500 Message-Id: <200110302217.f9UMHbF07299@sarg.ryerson.ca> To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] raise extra arg ignored In-reply-to: Your message of "Tue, 30 Oct 2001 22:29:03 +0100." <200110302129.WAA29040@pauillac.inria.fr> User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) CLIME/1.13.6 (=?ISO-2022-JP?B?GyRCQ2YlTj4xGyhC?=) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (alpha-redhat-linux) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: Tue, 30 Oct 2001 17:17:37 -0500 From: Dave Mason Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk The `obvious' solution is to make raise be a statement rather than a function. That has the added benefit of making raise a little clearer, to wit, instead of: ; ocaml Objective Caml version 3.02 # exception Foo of int;; exception Foo of int # raise Foo 42;; Characters 6-9: The constructor Foo expects 1 argument(s), but is here applied to 0 argument(s) # raise Foo 42 could be interpreted properly (i.e. as raise (Foo 42) This is one of the few ways that I prefer Java syntax over ocaml syntax. ../Dave ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr