caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] AST and "when"
@ 2003-01-29 11:20 Mike Potanin
  2003-01-29 14:33 ` Olivier Andrieu
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Potanin @ 2003-01-29 11:20 UTC (permalink / raw)
  To: caml-list


Can CamlP4 make "when" in pattern?

# <:patt< a when a<0 >>;;
            ^^^^
While expanding quotation "patt":
Parse error: end of input expected after [pattern] (in [pattern])
# <:expr< let p x = match x with a when a<0 -> 1 | b -> b in p z >>;;
                                   ^^^^
While expanding quotation "expr":
Parse error: '->' expected after [ipatt] (in [expression])


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2003-01-29 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 11:20 [Caml-list] AST and "when" Mike Potanin
2003-01-29 14:33 ` Olivier Andrieu
2003-01-29 15:33   ` Mike Potanin
2003-01-29 15:43     ` Olivier Andrieu
2003-01-29 16:51       ` Mike Potanin

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