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 NAA07090; Tue, 20 Jul 2004 13:08:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA06614 for ; Tue, 20 Jul 2004 13:08:52 +0200 (MET DST) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.77]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i6KB8pSH030068 for ; Tue, 20 Jul 2004 13:08:51 +0200 Received: from warp (unknown [80.125.127.81]) by smtp.cegetel.net (Postfix) with SMTP id B7C8067273; Tue, 20 Jul 2004 13:08:50 +0200 (CEST) Message-ID: <003701c46e49$d5099720$ef01a8c0@warp> From: "Nicolas Cannasse" To: , "Richard Jones" References: <20040720092114.GA11136@redhat.com> Subject: Re: [Caml-list] Slight parsing difference with/without -pp "camlp4o" Date: Tue, 20 Jul 2004 13:08:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Miltered: at concorde with ID 40FCFD43.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 -pp:01 camlp:01 3.07:01 ocamlc:01 ocamlc:01 -pp:01 camlp:01 bug:01 cannasse:01 ocaml:01 ocaml:01 nicolas:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > [This is with OCaml 3.07 - not checked with 3.08] > > --------------------------------------------------------- pptest.ml -- > let f = fun (year, week) as yw -> 1 > ---------------------------------------------------------------------- > > $ ocamlc -c pptest.ml > File "pptest.ml", line 1, characters 25-27: > Syntax error > > But ... > > $ ocamlc -pp "camlp4o" -c pptest.ml > $ > > Rich. Yesterday I reported a bug to the OCaml Team : The following : SomeUnknownModule.f() is successfully compiled when using camlp4o.opt.exe under Win32 MSVC. Looks like an empty syntax tree is returned when some error is raised. It might be the same problem, try to shift to camlp4 bytecode built in order to fix this. Regards, Nicolas Cannasse ------------------- 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