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 WAA13228; Thu, 13 Mar 2003 22:25:12 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 WAA12910 for ; Thu, 13 Mar 2003 22:25:10 +0100 (MET) Received: from woodstock.1969.ws (64-215-156-42.eosinc.net [64.215.156.42]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h2DLP9X26225 for ; Thu, 13 Mar 2003 22:25:09 +0100 (MET) Received: (qmail 19986 invoked from network); 13 Mar 2003 21:09:00 -0000 Received: from karl.1969.ws (HELO 1969.ws) (10.3.2.15) by woodstock.1969.ws with SMTP; 13 Mar 2003 21:09:00 -0000 Message-ID: <3E70F854.7020705@1969.ws> Date: Thu, 13 Mar 2003 13:29:56 -0800 From: Karl Zilles Organization: 1969 Communications, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Daniel M. Albro" CC: caml-list@inria.fr Subject: Re: [Caml-list] OCaml popularity References: <1047539347.1603.32.camel@giynz> In-Reply-To: <1047539347.1603.32.camel@giynz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; caml-list:01 fleshed:01 ocaml:01 exception:02 wrote:03 data:03 imperative:04 implement:05 raise:05 daniel:06 loop:06 language:10 expanded:89 break:11 create:13 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Daniel M. Albro wrote: > imperative side of the language will get fleshed out a bit with some > expanded loop features like break statements, You can always implement a break statement as an exception: exception Break;; try for i = 1 to 10 do if i == 5 then raise Break done with Break -> ();; As an exception, you could (if you wanted) include special case handling for the break, or create a more aptly named exception and pass through data. ------------------- 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