From: Michael Wohlwend <micha-1@fantasymail.de>
To: OCaml <caml-list@yquem.inria.fr>
Subject: pa_oo.ml question
Date: Thu, 30 Mar 2006 21:28:25 +0100 [thread overview]
Message-ID: <200603302228.25635.micha-1@fantasymail.de> (raw)
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
next reply other threads:[~2006-03-30 21:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-30 20:28 Michael Wohlwend [this message]
2006-03-31 7:52 ` [Caml-list] " Keiko Nakata
2006-03-31 8:02 ` Michael Wohlwend
2006-03-31 8:21 ` Keiko Nakata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603302228.25635.micha-1@fantasymail.de \
--to=micha-1@fantasymail.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox