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_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 21E15BC0A for ; Sat, 24 Mar 2007 16:40:58 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2OFevle010535 for ; Sat, 24 Mar 2007 16:40:58 +0100 Received: by ug-out-1314.google.com with SMTP id k3so1219514ugf for ; Sat, 24 Mar 2007 08:40:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=W5UtrzFEY4LLo+6sGv2YI6GiDyem708CJ2dBk3tz++s3TnkAz+iRKu45rb9aO8yR5TZXQ2UWWIrolZpXqJqytMrdSdvu548bPsJdK9TnG25zZdXTbytXuvSJ9afiKCMlFWJxX4BgTz+nVc2ly/GnC0Ycf0RrtUQZUW5fh9fZZYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IpP67VPB4iD0TECpvlrEzTg0Ic50b0GaOA/23qmFS7B1zdjuTVETKgw787zNpMvDIXw5BrV8yNd8OBarRr26q8L7TJfGtQoammG9CLlvVAmqiziX3k3H1tZZ84KFcrevJo8d4T+6QFavi1zCVBBYFpgiJCFW0tgnd3YKBtQj5MQ= Received: by 10.114.27.20 with SMTP id a20mr1735860waa.1174750856653; Sat, 24 Mar 2007 08:40:56 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Sat, 24 Mar 2007 08:40:56 -0700 (PDT) Message-ID: Date: Sat, 24 Mar 2007 16:40:56 +0100 From: "Nicolas Pouillard" To: "Matthieu Wipliez" Subject: Re: [Caml-list] beta-test of OCaml 3.10.0: compiling on Windows, trying the new Camlp4 Cc: "Caml List" In-Reply-To: <650869.47988.qm@web27006.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <650869.47988.qm@web27006.mail.ukl.yahoo.com> X-j-chkmail-Score: MSGID : 46054689.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46054689.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 camlp:01 matthieu:01 compilation:01 ocamlc:01 -pp:01 camlp:01 preprocess:01 syntax:01 bug:01 syntax:01 bug:01 ocamlc:01 lexer:01 mli:01 On 3/23/07, Matthieu Wipliez wrote: > > Hello, Hello, [...] > > After compilation/installation, I tested this new version, compiling with > "ocamlc.opt -pp camlp4o.opt". Is it still the right way to preprocess with > Camlp4 ? If you want to use the original syntax, yes. > Anyway, here's what I obtain: > - in a class, "method private virtual" is not accepted anymore, the order > has to be "method virtual private". It was a bug in the new camlp4 (fixed in CVS). > - assert MySet.is_empty set; is not accepted anymore either, I have to add > brackets: assert (MySet.is_empty set); Assuming you want the original syntax, then it was a bug to accept it since ocamlc also requires parentheses. > - compiling a file containing this kind of comment (* <<<< COMMENT *) > fails with "Quotation not terminated". That's not a bug that's a feature like strings, quotations are read by the lexer. However if you don't use quotation in your source file you can give the -no_quot option to camlp4. > - in a .mli, declaring an empty module ABC, with "module type ABC" does > not work (but does without preprocessing). I missed that feature (now fixed in CVS too). > I used the version from > http://caml.inria.fr/pub/distrib/ocaml-3.10/ocaml-3.10.0+beta.tar.gz, > so maybe some things have been corrected since. Yes, try the CVS (-r release310). The new changes will be propagated in a few hours. -- Nicolas Pouillard