caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] infinity matches all
@ 2003-08-25 14:12 Yaron Minsky
  2003-08-25 14:35 ` Oleg Trott
  2003-08-25 14:44 ` Xavier Leroy
  0 siblings, 2 replies; 4+ messages in thread
From: Yaron Minsky @ 2003-08-25 14:12 UTC (permalink / raw)
  To: caml-list

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.

Yaron


-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-25 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-25 14:12 [Caml-list] infinity matches all Yaron Minsky
2003-08-25 14:35 ` Oleg Trott
2003-08-25 14:44 ` Xavier Leroy
2003-08-25 14:54   ` Mattias Waldau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).