caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: sejourne_kevin@yahoo.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] marshalling objects
Date: Mon, 14 Nov 2005 19:01:49 +0900 (JST)	[thread overview]
Message-ID: <20051114.190149.108742562.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <43785DC7.1070908@yahoo.fr>

From: sejourne_kevin <sejourne_kevin@yahoo.fr>
> Jacques Garrigue a écrit :
> > 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.
> 
> Exactly the same one or just all classes ?
> I think this could be in the manual of module Marshal.

Actually it's just a consequence of the internal representation of
classes, which is described in the C interface section.
That is, each object contains an array with all its methods, which are
function closures.
This is the reason you need the flag for closures.
And the condition with closures is quite explicit: this must be
exactly the same program. I also expect that, for native code, it must
be the same architecture.

Jacques Garrigue


  reply	other threads:[~2005-11-14 10:01 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 ` [Caml-list] " Jacques Garrigue
2005-11-14  9:49   ` sejourne_kevin
2005-11-14 10:01     ` Jacques Garrigue [this message]
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=20051114.190149.108742562.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=sejourne_kevin@yahoo.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).