From: ygrek <ygrek@autistici.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml 4.01.0 Marshal dumping on Object
Date: Wed, 29 Jan 2014 15:08:26 +0800 [thread overview]
Message-ID: <20140129150826.7000c270@kiwi.local.tld> (raw)
In-Reply-To: <CADdxc_nz-ZRzJ-2mLmPHCz8+0FwzcH0+r1AX6O--7s5HVJpvcg@mail.gmail.com>
On Wed, 29 Jan 2014 02:09:52 +0100
Xavier Van de Woestyne <xavier.vdw@gmail.com> wrote:
> But I've some problems when I try to serialize an Object :
>
> *Exception: Invalid_argument "output_value: abstract value (outside heap)*
Quoting the manual[1] :
> If flags does not contain Marshal.Closures, marshaling fails when it
> encounters a functional value inside v: only 'pure' data structures,
> containing neither functions nor objects, can safely be transmitted
> between different programs. 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.)
I read it as objects are not marshallable at all.
[1]: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Marshal.html
--
prev parent reply other threads:[~2014-01-29 7:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 1:09 Xavier Van de Woestyne
2014-01-29 7:08 ` ygrek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140129150826.7000c270@kiwi.local.tld \
--to=ygrek@autistici.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox