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] mutability analysis too strict?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ohad Rodeh <ORODEH@i...>
Subject: [Caml-list] mutability analysis too strict?
   I have a problem with hashtable mutability analysis. For example:

      let h = Hashtbl.create 10;;
      h : ('_a, '_b) Hashtbl.t

The objects and keys in the table are infered to be mutable. However,
in my case, they are immutable and I have to coerce them using Obj.magic
'_b to 'b.

Can this be fixed? why is the analysis so restrictive?


Bug reports:  FAQ:
To unsubscribe, mail  Archives: