From: Oleg <oleg_inconnu@myrealbox.com>
To: caml-list@inria.fr
Subject: [Caml-list] marshalling and code changes
Date: Mon, 29 Jul 2002 08:50:26 -0400 [thread overview]
Message-ID: <200207291249.IAA02832@dewberry.cc.columbia.edu> (raw)
Hi
Suppose I use Marshall module (and input_value / output_value pervasives) to
serialize a sophisticated data type. If I make [small] changes to this data
type, what is the best way to convert old saved data?
What if the new type is a supertype to the old one, can I load it safely?
I tried it with
type old_type = Float of float | Int of int ;;
type new_type = Float of float | Int of int | S of string;;
and it seemed to have worked with input_value and output_value.
Thanks
Oleg
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2002-07-29 12:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 12:50 Oleg [this message]
2002-07-29 13:48 ` James Leifer
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=200207291249.IAA02832@dewberry.cc.columbia.edu \
--to=oleg_inconnu@myrealbox.com \
--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