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 55D29BB9A for ; Sat, 8 Oct 2005 18:09:33 +0200 (CEST) Received: from fork.recoil.org (fork.recoil.org [194.70.3.132]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id j98G9Ws5012753 for ; Sat, 8 Oct 2005 18:09:33 +0200 Received: (qmail 29704 invoked from network); 8 Oct 2005 16:08:24 -0000 Received: from localhost (HELO ?IPv6:::1?) (127.0.0.1) by fork.recoil.org with SMTP; 8 Oct 2005 16:08:24 -0000 In-Reply-To: <20051008153429.A2314289004@toller> References: <20051008153429.A2314289004@toller> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1456CFD1-55B7-4A3B-B121-6B27529F94BE@recoil.org> Cc: caml-list@yquem.inria.fr Content-Transfer-Encoding: 7bit From: Anil Madhavapeddy Subject: Re: [Caml-list] trouble with Marshal.to_string Date: Sat, 8 Oct 2005 17:09:31 +0100 To: Norman Ramsey X-Mailer: Apple Mail (2.734) X-Miltered: at nez-perce with ID 4347EF3C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; anil:01 anil:01 caml-list:01 bindings:01 2005,:98 wrote:01 abstract:01 exception:01 exception:01 closures:01 marshal:01 marshal:01 define:01 argument:01 caml:02 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 8 Oct 2005, at 16:34, Norman Ramsey wrote: > Dear Camllists, > > I'm having trouble using Marshal.to_string. My call looks like this: > > Marshal.to_string f [Marshal.Closures] > > but unfortunately Marshal.to_string raises an exception: > > Fatal error: exception Invalid_argument("output_value: abstract > value (Custom)") > Are you using any C bindings which create custom blocks? That error occurs if your custom block does not define a serialization function (documented here: http://caml.inria.fr/pub/docs/manual-ocaml/ manual032.html#s:custom). Anil