English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
camlp4 3.10: <:expr < $opt:... >>
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-30 (15:01)
From: Joel Reymont <joelr1@g...>
Subject: camlp4 3.10: <:expr < $opt:... >>
While compiling

       let $list:field_refs$ in
       let $opt:true$ $list:[match_patt_expr]$ in
       do { iter field_sexps; $match_result$ }

I get

While expanding quotation "expr" in a position of "expr":
   Parse error: "module" or [opt_rec] expected after "let" (in [expr])

Which falls smack on "let $opt:true$".

It looks like the syntax for "'a * option" has changed. How do I fix  

	Thanks, Joel