From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA10608; Thu, 24 Oct 2002 01:57:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA08641 for ; Thu, 24 Oct 2002 01:57:45 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp1.cp.tin.it (vsmtp1.tin.it [212.216.176.221]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9NNvi503405 for ; Thu, 24 Oct 2002 01:57:44 +0200 (MET DST) Received: from dalamar.takhisis.org (80.117.62.31) by smtp1.cp.tin.it (6.5.019) id 3DB5E7C400062D58 for caml-list@inria.fr; Thu, 24 Oct 2002 01:57:43 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.6/8.12.6/Debian-7) with ESMTP id g9NNvfqo019571 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Thu, 24 Oct 2002 01:57:42 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-7) with ESMTP id g9NNvJ3c009210 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 24 Oct 2002 01:57:19 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-7) id g9NNvJOi009208 for caml-list@inria.fr; Thu, 24 Oct 2002 01:57:19 +0200 Date: Thu, 24 Oct 2002 01:57:19 +0200 From: Stefano Zacchiroli To: Ocaml Subject: Re: [Caml-list] Again on pattern matching and strings Message-ID: <20021023235719.GA9170@cs.unibo.it> Mail-Followup-To: Ocaml References: <3DB73515.90705@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DB73515.90705@baretta.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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