caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* pa_oo.ml question
@ 2006-03-30 20:28 Michael Wohlwend
  2006-03-31  7:52 ` [Caml-list] " Keiko Nakata
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Wohlwend @ 2006-03-30 20:28 UTC (permalink / raw)
  To: OCaml

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-31  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-30 20:28 pa_oo.ml question Michael Wohlwend
2006-03-31  7:52 ` [Caml-list] " Keiko Nakata
2006-03-31  8:02   ` Michael Wohlwend
2006-03-31  8:21     ` Keiko Nakata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).