caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Pattern matching missing (or brain damage?)
@ 2002-07-18 22:22 Alessandro Baretta
  2002-07-18 22:36 ` Michael Vanier
  2002-07-19  0:08 ` William Lovas
  0 siblings, 2 replies; 5+ messages in thread
From: Alessandro Baretta @ 2002-07-18 22:22 UTC (permalink / raw)
  To: Ocaml

I believe I remember a pattern matching construct where an 
expression could be associated with multiple patterns.

match <expr> with
| A(_) | B(_) | C(_) -> foo
| C(_) | D(_) | E(_) -> bar

Neither does the compiler accept such code, nor does the 
manual mention such construct. Has it been removed from the 
language or am I suffering severe brain damage from too much 
O'Caml coding?

Alex

-------------------
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:[~2002-07-20 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-18 22:22 [Caml-list] Pattern matching missing (or brain damage?) Alessandro Baretta
2002-07-18 22:36 ` Michael Vanier
2002-07-20 15:28   ` Oleg
2002-07-19  0:08 ` William Lovas
2002-07-19  1:09   ` Alessandro Baretta

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