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=1.1 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 918D8BC69 for ; Tue, 20 Mar 2007 12:15:19 +0100 (CET) Received: from animal.inescn.pt (animal.inescn.pt [192.35.246.1]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2KBFINg011258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Mar 2007 12:15:19 +0100 Received: from localhost (localhost [127.0.0.1]) by animal.inescn.pt (8.13.8/8.13.6/9) with ESMTP id l2KBFHpq027372 for ; Tue, 20 Mar 2007 11:15:17 GMT X-Virus-Scanned: amavisd-new at inescporto.pt Received: from animal.inescn.pt ([127.0.0.1]) by localhost (animal.inescn.pt [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ac4SKamq44N6 for ; Tue, 20 Mar 2007 11:14:54 +0000 (WET) Received: from [194.117.30.94] (morfina.inescn.pt [194.117.30.94]) by animal.inescn.pt (8.13.8/8.13.8/11) with ESMTP id l2KBEqql027293 for ; Tue, 20 Mar 2007 11:14:52 GMT Message-ID: <45FFC22C.8010903@inescporto.pt> Date: Tue, 20 Mar 2007 11:14:52 +0000 From: Hugo Ferreira User-Agent: Thunderbird 1.5.0.10 (X11/20070305) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] camlp4: processing lists References: <45FFB71B.3080002@inescporto.pt> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45FFC246.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 bug:01 iter:01 endline:01 syntax:01 syntax:01 bug:01 camlp:01 wrote:01 wrote:01 caml-list:01 expression:02 revised:02 revised:02 btw:02 Hi, Nicolas Pouillard wrote: > On 3/20/07, Hugo Ferreira wrote: >> Hello, >> > > Here you reached a bug (fixed for 3.10) > >> List.iter (fun i -> print_endline i) >> [do { "1"; "f(X,Y)"; "g(X,Y)"; "4" }] >> } >> in >> () >> So I take it that I either wait for 3.10 or circumvent this problem with a non-revised syntax print. > > The in revised 1; 2 is not a valid expression you need to add do { ... > } thus by printing it in the revised syntax you see that was not what > you want. > BTW it was a bug in camlp4 to print [1; 2] where it was [(1; 2)]. > > Hope this helps, > It has indeed. Thank you, Hugo Ferreira.