Browse thread
[Caml-list] Matching when
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2002-08-05 (16:01) |
From: | Remi VANICAT <vanicat@l...> |
Subject: | Re: [Caml-list] Matching when |
"Nicolas Cannasse" <warplayer@free.fr> writes: > Hi ! > > I was thinking that the following should be possible : > > match e with > | Any > | Int x when x > 0 -> > .... (* here we don't use x *) > | .... well, I won't say it's beautiful, but this work : match (e, 10) with | (Any, t) | (Int t, _) when t > 0 -> .... | .... -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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