caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* camlp4 3.10: <:expr < $opt:... >>
@ 2007-04-30 15:01 Joel Reymont
  2007-04-30 15:22 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Reymont @ 2007-04-30 15:01 UTC (permalink / raw)
  To: Caml List

While compiling

     <:expr<
       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  
this?

	Thanks, Joel

--
http://wagerlabs.com/






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

* Re: [Caml-list] camlp4 3.10: <:expr < $opt:... >>
  2007-04-30 15:01 camlp4 3.10: <:expr < $opt:... >> Joel Reymont
@ 2007-04-30 15:22 ` Nicolas Pouillard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-04-30 15:22 UTC (permalink / raw)
  To: Joel Reymont; +Cc: Caml List

On 4/30/07, Joel Reymont <joelr1@gmail.com> wrote:
> While compiling
>
>      <:expr<
>        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
> this?
>

Replace `$opt:true$' by `$rec:true$' or even simply by `rec' since the
antiquotation is constant.

-- 
Nicolas Pouillard


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

end of thread, other threads:[~2007-04-30 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-30 15:01 camlp4 3.10: <:expr < $opt:... >> Joel Reymont
2007-04-30 15:22 ` [Caml-list] " 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).