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
Feature proposal: improved compare
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tom <tom.primozic@g...>
Subject: Re: [Caml-list] Feature proposal: improved compare
> I believe that won't work with OCaml's GC because it contains a copying
> collector, obviating a total ordering over pairs of pointers.

The pointer used in total ordering is points outside the heap, into the
OCaml code (either machine code or byte-code), which, as far as I know, is
neither moved nor collected (although this would actually be a useful
feature, unloading modules...)