Browse thread
[Caml-list] Again on pattern matching and strings
-
Alessandro Baretta
- Stefano Zacchiroli
- Alexander V.Voinov
- Christopher Quinn
- Alessandro Baretta
[
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: | -- (:) |
| From: | Stefano Zacchiroli <zack@c...> |
| Subject: | Re: [Caml-list] Again on pattern matching and strings |
On Thu, Oct 24, 2002 at 01:47:33AM +0200, Alessandro Baretta wrote: > | Some ( "\027(U\001\000\005" ) -> ... > | Some ( "\027@" ) -> ... > | Some ( "\012" ) -> ... What about: | Some m when m = printer_set_unit -> ... | Some m when m = printer-reset -> ... | Some m when m = printer_formfeed -> ... ... | Some (_) -> assert false | None -> () It isn't so bad ... Anyway from a more general point of view I'm also interested in seeing "aliasing" or constant definition in the compiler, it is of general interest, not only in pattern matching. Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- 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