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
Strange output from Camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <matt@g...>
Subject: Strange output from Camlp4
In the process of trying to learn the revised syntax for objects, I have
encountered a strange message from Camlp4.

I have a file,, whose contents look like this:

  let conf = object
    val mutable data:(string * string) list = []

    method get k = List.assoc k data

BTW, that is deliberately a let binding rather than a class definition.
Is that not supposed to work?

Anyway, as suggested by the Camlp4 manual, I run

  camlp4o pr_r.cmo

With the result:

  value conf =<pr_r: not impl: expr; tag = 25>;


Matt Gushee
Englewood, CO, USA