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 QAA10329; Mon, 25 Aug 2003 16:35:30 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA14181 for ; Mon, 25 Aug 2003 16:35:29 +0200 (MET DST) Received: from pecan.cc.columbia.edu (pecan.cc.columbia.edu [128.59.59.178]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7PEZST08380 for ; Mon, 25 Aug 2003 16:35:28 +0200 (MET DST) Received: from tw304h3.cpmc.columbia.edu (tw304h3.cpmc.columbia.edu [156.111.84.180]) (user=ot14 mech=LOGIN bits=0) by pecan.cc.columbia.edu (8.12.8p1/8.12.8) with ESMTP id h7PEZKeE023869 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Mon, 25 Aug 2003 10:35:23 -0400 (EDT) From: Oleg Trott To: "Yaron Minsky" , Subject: Re: [Caml-list] infinity matches all Date: Mon, 25 Aug 2003 10:35:09 -0400 User-Agent: KMail/1.5.3 References: <16896.141.155.88.179.1061820763.squirrel@minsky-primus.homeip.net> In-Reply-To: <16896.141.155.88.179.1061820763.squirrel@minsky-primus.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308251035.10283.oleg_trott@columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.35 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oleg:01 oleg:01 caml-list:01 yaron:01 minsky:01 foo:01 typecheck:01 3.06.:01 match:02 match:02 string:03 wrote:03 btw:03 behavior:03 behavior:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Monday 25 August 2003 10:12 am, Yaron Minsky wrote: > Can anyone explain the following behavior of match when used with infinity? > > # match "foo" with infinity -> "bar";; > - : string = "bar" > > This shouldn't even typecheck. It seems to treat infinity as equivalent > to "_". This behavior comes up in version 3.06. This is ugly. The same happens with `nan' , BTW. -- Oleg Trott ------------------- 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