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] Semantics of physical equality
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-27 (20:31)
From: Kevin S. Millikin <kmillikin@a...>
Subject: [Caml-list] Semantics of physical equality
I'm trying to figure out what I can rely on about physical equality. 
 I've checked the OCaml manual but can't seem to find what I want to 


# type t = V0 | V1 of int;;
type t = V0 | V1 of int

# V0 == V0;;
- : bool = true

V0's are the same.  Is this guaranteed?

# V1(0) == V1(0);;
- : bool = false

V1's are different.  Is this guaranteed?

Kevin S. Millikin           Architecture Technology Corporation
Research Scientist          Specialists in Computer Architecture
(952)829-5864 x162

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