From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 A814CBBBB for ; Thu, 30 Mar 2006 23:25:22 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k2ULPMeQ009003 for ; Thu, 30 Mar 2006 23:25:22 +0200 Received: (qmail invoked by alias); 30 Mar 2006 21:25:21 -0000 Received: from p54A34C6F.dip0.t-ipconnect.de (EHLO [192.168.2.136]) [84.163.76.111] by mail.gmx.net (mp037) with SMTP; 30 Mar 2006 23:25:21 +0200 X-Authenticated: #20477425 From: Michael Wohlwend To: OCaml Subject: pa_oo.ml question Date: Thu, 30 Mar 2006 21:28:25 +0100 User-Agent: KMail/1.9.1 X-Face: S)[vu%Bha1d&ej9GfwAq~7C}A,y[B.uS}+D6'hb~xPwsxymw$fnCOaMe<=?utf-8?q?*bnUajSBR=5Fm=3FR=0A=09?=@V3;iX8[A}z`.%pEQ1r7iZhN8#ktTCBQ}&mkx>=RH&l|l6\]NZI@ MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603302228.25635.micha-1@fantasymail.de> X-Y-GMX-Trusted: 0 X-Miltered: at concorde with ID 442C4CC2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlc:01 camlp:01 -pp:01 cmo:01 mlast:01 cmo':01 val:01 mutable:01 accessor:01 ocamlc:01 -pp:01 cmo':01 expr:01 uncaught:01 expr:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO,SPF_FAIL autolearn=disabled version=3.0.3 has anybody tried the oo-syntax extension given here: http://www.math.nagoya-u.ac.jp/~garrigue/code/pa_oo.ml compiling works (ocamlc -I +camlp4 -c -pp 'camlp4o pa_extend.cmo q_MLast.cmo' pa_oo.ml) but compiling the code: class xxx = object val mutable name = "" with accessor end;; gives this error: > ocamlc -pp 'camlp4o -I . pa_oo.cmo' class.ml File "", line 2, characters 23-27: Parse error: 'end' expected after [class_structure] (in [class_expr]) Uncaught exception: Stream.Error("'end' expected after [class_structure] (in [class_expr])") Preprocessor error isn't this the way to use this extension? cheers Michael