Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Pattern matching missing (or brain damage?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-18 (22:15)
From: Alessandro Baretta <alex@b...>
Subject: [Caml-list] Pattern matching missing (or brain damage?)
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?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: