Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] infinity matches all
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-08-25 (14:12)
From: Yaron Minsky <yminsky@c...>
Subject: [Caml-list] infinity matches all
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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: