[
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: | Jim Farrand <jim@f...> |
| Subject: | [Caml-list] Some things are more equal than others |
Silly newbie question coming up... What's the difference between (=) and (==)? I know that this is almost certainly a case of RTFM, but I can't seem to find the right place. 6.7.4 mentions "structural" and "physical" equality, but doesn't define either. My guess is that "physical" equality is "are these the same object", and structural equality is "are these objects equivelent". Hence: # "Jim"=="Jim";; - : bool = false # "Jim"="Jim";; - : bool = true€ I thought I'd better check I'm guessing right, or I will almost certainly fall over this sometime in the future. :) TIA, Jim ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr