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 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 6A518BC6C for ; Sun, 27 Jan 2008 17:33:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAALZBnEfAXQImh2dsb2JhbACQKAEBAQgKKZl+ X-IronPort-AV: E=Sophos;i="4.25,256,1199660400"; d="scan'208";a="7293459" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 27 Jan 2008 17:33:32 +0100 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m0RGXSil017033 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 27 Jan 2008 17:33:32 +0100 X-IronPort-AV: E=Sophos;i="4.25,256,1199660400"; d="scan'208";a="8420210" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail3-relais-sop.national.inria.fr with SMTP; 27 Jan 2008 17:33:31 +0100 Received: by ausone.inria.fr (sSMTP sendmail emulation); Sun, _d Jan 2008 17:32:28 +0100 From: "Nicolas Pouillard" Content-Type: text/plain; charset=UTF-8 Cc: caml-list Subject: Re: [Caml-list] camlp4 Filters changed? To: joelr1 References: <1201438563-sup-8235@ausone.local> In-Reply-To: Date: Sun, 27 Jan 2008 17:32:28 +0100 Message-Id: <1201451422-sup-4208@ausone.local> User-Agent: Sup/git X-Miltered: at discorde with ID 479CB258.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 expr:01 expr:01 wiki:01 camlp:01 wiki:01 token:01 wrote:01 caml-list:01 inherit:01 define:02 match:02 declaration:02 loc:03 let:03 Excerpts from joelr1's message of Sun Jan 27 17:07:15 +0100 2008: > I edited my code but I still get the "no expr" error in > > let strip_token_loc = object > inherit map as super > method expr e = > match super#expr e with > | `TokenPos (a, _) -> a > | e -> e > end > > I'll check the wiki but please let me know what other changes I missed. That's certainly because you need to define your types as one big definition (using "and"). type t1 = ... and t2 = ... and t3 = ... class map = Camlp4MapGenerator.generated; Because the generation declaration take only the last definition group now. > On Jan 27, 2008, at 12:58 PM, Nicolas Pouillard wrote: > > > It's now: > > > > class map = Camlp4MapGenerator.generated; > > > > I've just updated the wiki. > > > - > http://wagerlabs.com -- Nicolas Pouillard aka Ertai