caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Strange output from Camlp4
@ 2005-10-28 18:53 Matt Gushee
  2005-11-01 13:54 ` [Caml-list] " Hendrik Tews
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Gushee @ 2005-10-28 18:53 UTC (permalink / raw)
  To: caml-list

In the process of trying to learn the revised syntax for objects, I have
encountered a strange message from Camlp4.

I have a file, ox.ml, whose contents look like this:

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

    method get k = List.assoc k data
  end

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 ox.ml

With the result:

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

???

--
Matt Gushee
Englewood, CO, USA


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

end of thread, other threads:[~2005-11-01 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 18:53 Strange output from Camlp4 Matt Gushee
2005-11-01 13:54 ` [Caml-list] " Hendrik Tews

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).