From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 3248ABBC1 for ; Thu, 10 Apr 2008 16:36:48 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowAAHPC/UdCbwQck2dsb2JhbACRTQEBAQEJAwkJFplh X-IronPort-AV: E=Sophos;i="4.25,636,1199660400"; d="scan'208";a="24846646" Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by mail4-smtp-sop.national.inria.fr with ESMTP; 10 Apr 2008 16:36:47 +0200 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 099FBEDA1C; Thu, 10 Apr 2008 10:36:47 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 10 Apr 2008 10:36:47 -0400 X-Sasl-enc: v8oc6a8Jid+ihN9PCrGVTp3OiXm06m8QqE/W4Qi512WA 1207838206 Received: from [192.168.1.10] (ALyon-157-1-61-61.w81-251.abo.wanadoo.fr [81.251.28.61]) by mail.messagingengine.com (Postfix) with ESMTPSA id 40B072E099; Thu, 10 Apr 2008 10:36:46 -0400 (EDT) Date: Thu, 10 Apr 2008 16:35:30 +0200 (CEST) From: Martin Jambon X-X-Sender: martin@martin.ec.wink.com To: Michael Wohlwend Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] break and continue for OCaml In-Reply-To: <200804101624.08376.micha-1@fantasymail.de> Message-ID: References: <5b0248170804091859s75c3f725s2db53f48fba6735c@mail.gmail.com> <20080410133956.GA4065@annexia.org> <200804101624.08376.micha-1@fantasymail.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam: no; 0.00; ens-lyon:01 ocaml:01 donnerstag:01 struct:01 10.:98 wrote:01 caml-list:01 jambon:01 jambon:01 loops:02 module:03 let:03 let:03 thu:05 apr:06 On Thu, 10 Apr 2008, Michael Wohlwend wrote: > Am Donnerstag, 10. April 2008 16:05:45 schrieb Martin Jambon: > >> I'm OK with the intent, but what should happen in such cases: >> >> module A = >> struct >> let a = break >> let b = continue > > I think break and continue should be restricted to inside of loops, which > isn't hard to do. I would not say this until I have done it myself :-) Martin -- http://wink.com/profile/mjambon http://mjambon.com