From: brogoff@speakeasy.net
To: Pierre Weis <pierre.weis@inria.fr>
Cc: Dmitry Bely <dbely@mail.ru>, "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Cross-platform DBM equivalent?
Date: Fri, 27 Dec 2002 10:03:55 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.44.0212270956400.19426-100000@grace.speakeasy.net> (raw)
In-Reply-To: <200212271319.OAA25223@pauillac.inria.fr>
On Fri, 27 Dec 2002, Pierre Weis wrote:
> > Can marshalling functions output be different for different versions of
> > Ocaml? If I try to feed incompatible data (e.g. form the previous version)
> > to input_value, what I will have then - segfault? If so, they can hardly be
> > used for saving configuration data.
> >
> > - Dmitry Bely
>
> There is is no warranty from the language definition, nor from the
> implementor team, that the marshalling functions will never be
> modified: imagine we find a new way to get data files much more
> compact, then yes, sure, we will implement this new scheme as soon as
> possible!
One can also write IO routines which tag the file with a header string
containing Sys.ocaml_version, and raise an exception if that header is
incompatible with the version of OCaml you're using. That avoids the
crash.
Wishing for type safe value IO in OCaml for 2003!
-- Brian
-------------------
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 prev parent reply other threads:[~2002-12-27 18:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-26 7:17 Matt Gushee
2002-12-26 8:39 ` Alessandro Baretta
2002-12-26 10:05 ` Matt Gushee
2002-12-26 16:50 ` Pierre Weis
2002-12-26 17:03 ` Joshua D. Guttman
2002-12-27 13:07 ` Pierre Weis
2002-12-26 17:08 ` David Brown
2002-12-26 18:23 ` Stefano Zacchiroli
2002-12-27 13:11 ` Pierre Weis
2003-01-12 10:13 ` Sven Luther
2002-12-26 19:20 ` Dmitry Bely
2002-12-27 13:19 ` Pierre Weis
2002-12-27 18:03 ` brogoff [this message]
2002-12-27 7:21 ` Matt Gushee
2002-12-26 20:00 ` Yaron M. Minsky
2003-01-02 10:03 ` 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=Pine.LNX.4.44.0212270956400.19426-100000@grace.speakeasy.net \
--to=brogoff@speakeasy.net \
--cc=caml-list@inria.fr \
--cc=dbely@mail.ru \
--cc=pierre.weis@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).