From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 6C4C8BB9C for ; Thu, 15 Sep 2005 17:15:16 +0200 (CEST) Received: from efil.de (efil.de [81.3.25.37]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j8FFFGLL031807 for ; Thu, 15 Sep 2005 17:15:16 +0200 Received: by efil.de (Postfix, from userid 1000) id 157DC99C0A7; Thu, 15 Sep 2005 17:15:41 +0200 (CEST) Date: Thu, 15 Sep 2005 17:13:09 +0200 From: Ingo Bormuth To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Marshal.to_string and mutable values Message-ID: <20050915151309.GA14311@kruemel> Reply-To: Ingo Bormuth References: <005201c5ba04$1797ff80$0100a8c0@mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <005201c5ba04$1797ff80$0100a8c0@mshome.net> X-Attribution: Ingo Bormuth X-Url: http://ibormuth.efil.de/contact User-Agent: Mutt/1.5.8i Cc: ingo@bormuth.org X-Miltered: at nez-perce with ID 43299004.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 mutable:01 gava:01 bug:01 toplevel:01 flags:01 marshaled:01 marshaling:01 toplevel:01 ingo:98 efil:98 ingo:98 efil:98 wrote:01 closures:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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 http://ibormuth.efil.de/contact | +--------------------------------------------------------+