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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A9F58BBAF for ; Fri, 27 Mar 2009 15:38:54 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvACAKeBzEnIuX5EgWdsb2JhbACWAgEBFiK6O4N3Bg X-IronPort-AV: E=Sophos;i="4.38,432,1233529200"; d="scan'208";a="23399275" Received: from mta21.f3.k8.com.br ([200.185.126.68]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Mar 2009 15:38:53 +0100 Received: from localhost (localhost [127.0.0.1]) by smtpa.f3.k8.com.br (Postfix) with ESMTP id 4303028000A6; Fri, 27 Mar 2009 14:38:50 +0000 (GMT) X-Virus-Scanned: amavisd-new at k8.com.br Received: from smtpa.f3.k8.com.br ([127.0.0.1]) by localhost (mta21.f3.k8.com.br [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Sjijh3q+Kcf7; Fri, 27 Mar 2009 14:38:50 +0000 (GMT) Received: from [189.106.157.197] (unknown [189.106.157.197]) by smtpa.f3.k8.com.br (Postfix) with ESMTP id 8230B2800092; Fri, 27 Mar 2009 14:38:49 +0000 (GMT) Subject: Re: [Caml-list] Revised syntax scope (3.10 vs. 3.11) From: Andre Nathan To: Nicolas Pouillard Cc: caml-list In-Reply-To: <1238147023-sup-5902@ausone.inria.fr> References: <1238128954.6000.21.camel@homesick> <1238147023-sup-5902@ausone.inria.fr> Content-Type: text/plain Date: Fri, 27 Mar 2009 11:43:19 -0300 Message-Id: <1238164999.5994.2.camel@homesick> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; syntax:01 0100,:01 syntax:01 expr:01 foo:01 semicolon:01 endline:01 endline:01 nathan:98 2009:98 wrote:01 caml-list:01 revised:02 let:03 scope:04 On Fri, 2009-03-27 at 10:45 +0100, Nicolas Pouillard wrote: > That was indeed the intended behavior, to get a larger scope for 'a' > use this syntax: > > <:expr< > do { > let a = "foo"; (* <--- semicolon here *) > print_endline a; > print_endline a > } > >> Thank you! Andre