Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Wohlwend <micha-1@f...>
Subject: question
has anybody tried the oo-syntax extension given here:

compiling works (ocamlc -I +camlp4 -c -pp 'camlp4o pa_extend.cmo q_MLast.cmo'

but compiling the code:
class xxx = object
 val mutable name = "" with accessor

gives this error:
> ocamlc -pp 'camlp4o -I . pa_oo.cmo'
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 
Preprocessor error

isn't this the way to use this extension?