* 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
* Re: [Caml-list] pa_oo.ml question
2006-03-30 20:28 pa_oo.ml question Michael Wohlwend
@ 2006-03-31 7:52 ` Keiko Nakata
2006-03-31 8:02 ` Michael Wohlwend
0 siblings, 1 reply; 4+ messages in thread
From: Keiko Nakata @ 2006-03-31 7:52 UTC (permalink / raw)
To: micha-1; +Cc: caml-list
From: Michael Wohlwend <micha-1@fantasymail.de>
Subject: [Caml-list] pa_oo.ml question
Date: Thu, 30 Mar 2006 21:28:25 +0100
> has anybody tried the oo-syntax extension given here:
>
> http://www.math.nagoya-u.ac.jp/~garrigue/code/pa_oo.ml
I am using this extension.
> class xxx = object
> val mutable name = "" with accessor
> end;;
I can compile this code with no errors.
> ocamlc -pp 'camlp4o -I . pa_oo.cmo' -c class.ml
works for me.
Keiko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] pa_oo.ml question
2006-03-31 7:52 ` [Caml-list] " Keiko Nakata
@ 2006-03-31 8:02 ` Michael Wohlwend
2006-03-31 8:21 ` Keiko Nakata
0 siblings, 1 reply; 4+ messages in thread
From: Michael Wohlwend @ 2006-03-31 8:02 UTC (permalink / raw)
To: caml-list
On Friday 31 March 2006 09:52, Keiko Nakata wrote:
> works for me.
with ocaml 3.09.1 ? taht would be strange ...
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] pa_oo.ml question
2006-03-31 8:02 ` Michael Wohlwend
@ 2006-03-31 8:21 ` Keiko Nakata
0 siblings, 0 replies; 4+ messages in thread
From: Keiko Nakata @ 2006-03-31 8:21 UTC (permalink / raw)
To: micha-1; +Cc: caml-list
From: Michael Wohlwend <micha-1@fantasymail.de>
Subject: Re: [Caml-list] pa_oo.ml question
Date: Fri, 31 Mar 2006 10:02:40 +0200
> On Friday 31 March 2006 09:52, Keiko Nakata wrote:
> > works for me.
>
> with ocaml 3.09.1 ? taht would be strange ...
With 3.09.0.
But, I tried with 3.10+dev4 (2006-03-22), and it works too.
Keiko
^ 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