From: Frederic Tronel <Frederic.Tronel@inrialpes.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Classes and marshaling
Date: Tue, 05 Feb 2002 13:32:30 +0100 [thread overview]
Message-ID: <3C5FD0DE.9E3913FB@inrialpes.fr> (raw)
In-Reply-To: <3C5EAF9B.E0B25E1@inrialpes.fr>
Frederic Tronel wrote:
>
> Is it possible to serialize an object ??
> In the toplevel:
>
> Objective Caml version 3.04
>
> # open Marshal ;;
> # class a = object end ;;
> class a : object end
> # to_string (new a) [] ;;
> Exception: Invalid_argument "output_value: object value".
> #
>
> Best regards,
>
> Frederic Tronel.
> -------------------
> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
> To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
After having taken a look at the source code (byterun/extern.c), it
seems that
caml value tagged with Object_tag (that is object) are simply ignored
(an
exception is raised).
Is there any chance to see object serialization being implemented in the
near future ??
By the way I did not find any reference about this problem in the
documentation
(in the book by chailloux, manoury and pagano, they mention that
abstract
types cannot be serialized, but it seems they do not mention objects).
Best regards,
Frederic Tronel.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2002-02-05 12:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-04 15:58 Frederic Tronel
2002-02-05 12:32 ` Frederic Tronel [this message]
2002-02-06 18:36 ` Xavier Leroy
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=3C5FD0DE.9E3913FB@inrialpes.fr \
--to=frederic.tronel@inrialpes.fr \
--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