Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] comparing references
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hal Daume III <hdaume@I...>
Subject: Re: [Caml-list] comparing references
> > I ask because my sum
> > types can be big (I'm dealing with trees), so it would be good if when I
> > want to check if two trees are the same, all I need to do is look at the
> > references to them.
> 
> Use == if you want to compare addresses.

How much do you need to worry about, ex., the GC moving stuff around and
messing this up?

 - Hal


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