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 KAA09721; Fri, 27 Apr 2001 10:23:31 +0200 (MET DST) 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 KAA09548 for caml-list@pauillac.inria.fr; Fri, 27 Apr 2001 10:23:31 +0200 (MET DST) 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 OAA29804 for ; Thu, 26 Apr 2001 14:07:01 +0200 (MET DST) Received: from localhost.localdomain (ppp42.dyn147.pacific.net.au [210.23.147.42]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f3QC6v104967 for ; Thu, 26 Apr 2001 14:06:58 +0200 (MET DST) Received: from ozemail.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id WAA27300 for ; Thu, 26 Apr 2001 22:06:46 +1000 Message-ID: <3AE80F56.DFDC823F@ozemail.com.au> Date: Thu, 26 Apr 2001 22:06:46 +1000 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: Re: [Caml-list] two unrelated questions References: <200104252108.OAA02055@smtp2-cm.mail.eni.net> <20010426080415.63b4affc.Judicael.Courant@lri.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "Judicaël Courant" wrote: > > exception Break > > try > > List.iter (fun .. -> ... raise Break) l > > with Break -> () Unfortunately: let f x = exception Break try ... raise Break ... with Break -> () ;; is in error, because exception declarations must be at the top level. This prevents desired localisation: this feature is not as good as a labelled break for this purpose. -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr