caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: Pietro.Abate@anu.edu.au
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] marshalling objects
Date: Fri, 11 Nov 2005 14:21:33 +0900 (JST)	[thread overview]
Message-ID: <20051111.142133.126763902.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <20051111045430.GA17854@pulp.anu.edu.au>

From: Pietro Abate <Pietro.Abate@anu.edu.au>

> It's not clear to me if it is possible or not to marshall objects ? From
> my tests it is not the case (output_value: abstract value (outside
> heap).). Am I missing something ? What is common practice to send
> objects across the wire ?

It is possible, but there was a bug in 3.08.
In 3.09, you can marshal an object with
   Marshal.to_string obj [Marshal.Closures]
Note that this means that the method table is really sent, as an array
of closures, which is possibly very innefficient, and also means that
the program on the other side must be the same one.

Jacques Garrigue


  reply	other threads:[~2005-11-11  5:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11  4:54 Pietro Abate
2005-11-11  5:21 ` Jacques Garrigue [this message]
2005-11-14  9:49   ` [Caml-list] " sejourne_kevin
2005-11-14 10:01     ` Jacques Garrigue
2008-04-25 20:42 Jacques Le Normand
2008-04-26  6:45 ` [Caml-list] " Basile STARYNKEVITCH
2008-04-26  7:42 ` Richard Jones

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=20051111.142133.126763902.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=Pietro.Abate@anu.edu.au \
    --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;
as well as URLs for NNTP newsgroup(s).