From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] marshalling objects
Date: Sat, 26 Apr 2008 08:45:10 +0200 [thread overview]
Message-ID: <4812CF76.9050706@starynkevitch.net> (raw)
In-Reply-To: <f74178430804251342t4cdb7924w28f2a5b9b06b598c@mail.gmail.com>
Jacques Le Normand wrote:
> hello caml list,
> if I marshal an object of class c and I write the result in a file
> foo.txt and, later on, I add methods to c, can I read the object in
> foo.txt and call the new methods on the object?
First, a *.txt extension for a binary file (written thru Marshal.*
functions) is very confusing.
Second, marshalling of any closures (including methods shared by
objects) can only be unmarshalled by the exact same binary. So if you
add/change code, it should not work.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
next prev parent reply other threads:[~2008-04-26 6:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 20:42 Jacques Le Normand
2008-04-26 6:45 ` Basile STARYNKEVITCH [this message]
2008-04-26 7:42 ` [Caml-list] " Richard Jones
-- strict thread matches above, loose matches on Subject: below --
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
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=4812CF76.9050706@starynkevitch.net \
--to=basile@starynkevitch.net \
--cc=caml-list@inria.fr \
--cc=rathereasy@gmail.com \
/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