caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* polymorphic variants and camlp4
@ 2007-02-12  3:32 Pietro Abate
  2007-02-12  4:01 ` [Caml-list] " Martin Jambon
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pietro Abate @ 2007-02-12  3:32 UTC (permalink / raw)
  To: ocaml ml

Hi all,

What is the syntax to use polymorphic variants with camlp4 ?

<:str_item< type a = A >> is ok, but <:str_item< type a = [ `A ] >>
doesn't work as expected...

While expanding quotation "str_item":
Parse error: '=' or '>' or '<' or [a_list] or [constructor_declaration]
  expected after '[' (in [type])
Uncaught exception: Pcaml.Qerror("str_item", 1, _)

When is the new version of camlp4/3.10 due ?
(this month, next month, next year) ?

thanks :)
p

-- 
++ Blog: http://blog.rsise.anu.edu.au/?q=pietro
++ 
++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html


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

end of thread, other threads:[~2007-02-12 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12  3:32 polymorphic variants and camlp4 Pietro Abate
2007-02-12  4:01 ` [Caml-list] " Martin Jambon
2007-02-12  4:12 ` Pietro Abate
2007-02-12 14:29   ` Serge Aleynikov
2007-02-12 10:54 ` 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).