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
Marshal.to_string and mutable values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ingo Bormuth <ibormuth@e...>
Subject: Re: [Caml-list] Marshal.to_string and mutable values
On 2005-09-15 16:45, Frédéric Gava wrote:
> Anybody have an idea ? I suppose it is not a bug but I do not know why it is
> a pb.

As far as I unserstand, those things are working in compiled programms only,
but not in the toplevel.

The manual says:

  | If flags contains Marshal.Closures, functional values will be marshaled as a
  | position in the code of the program. In this case, the output of marshaling
  | can only be read back in processes that run exactly the same program, with
  | exactly the same compiled code. (This is checked at un-marshaling time, using
  | an MD5 digest of the code transmitted along with the code position.)
This cannot be done in toplevel.

   | Ingo Bormuth,  voicebox & telefax: +49-12125-10226517  |
   | GnuPG key 86326EC9 at  |