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 SAA14135; Wed, 31 Oct 2001 18:57:14 +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 SAA13784 for ; Wed, 31 Oct 2001 18:57:13 +0100 (MET) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f9VHvD104811 for ; Wed, 31 Oct 2001 18:57:13 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id SAA21089 for caml-list@pauillac.inria.fr; Wed, 31 Oct 2001 18:57:08 +0100 Date: Wed, 31 Oct 2001 18:57:08 +0100 From: Daniel de Rauglaudre To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] raise extra arg ignored Message-ID: <20011031185708.U17285@verdot.inria.fr> References: <200110302129.WAA29040@pauillac.inria.fr> <200110302217.f9UMHbF07299@sarg.ryerson.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110302217.f9UMHbF07299@sarg.ryerson.ca>; from dmason@sarg.ryerson.ca on Tue, Oct 30, 2001 at 05:17:37PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Oct 30, 2001 at 05:17:37PM -0500, Dave Mason wrote: > 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: I thought of it, but it would not work. If "raise something" is an expression, as there is a rule "expr expr", then you can syntactically write: exception Foo;; raise Foo 33 "bar" true;; No solution. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- 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