caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] revised syntax and immediate objects
@ 2006-07-04 21:43 Jonathan Roewen
  2006-07-04 22:28 ` Martin Jambon
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonathan Roewen @ 2006-07-04 21:43 UTC (permalink / raw)
  To: OCaml

Hi,

What is the syntax for immediate objects in ocaml when using revised syntax?

I was reading the camlp4 tutorial from the caml site, and the section
on objects just directs users to use camlp4o pr_r.cmo to dump an
example in revised syntax.

The snippet of input code is thus:

let obj a b c = object method a : int = a method b : string = b method
c : string option = c end;;

The output from camlp4o pr_r.cmo gives:

value obj a b c =<pr_r: not impl: expr; tag = 25>;

I'd like to try make a camlp4 syntax extension that uses immediate
objects, and this isn't helping ;-)

Jonathan


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

end of thread, other threads:[~2006-07-05  8:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-04 21:43 [Caml-list] revised syntax and immediate objects Jonathan Roewen
2006-07-04 22:28 ` Martin Jambon
2006-07-04 22:53 ` Matt Gushee
2006-07-04 23:07   ` Jonathan Roewen
2006-07-04 23:20     ` Matt Gushee
2006-07-05  8:19   ` Nicolas Pouillard
2006-07-05  7:29 ` Nicolas Pouillard

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