Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Cross-platform DBM equivalent?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: brogoff@s...
Subject: Re: [Caml-list] Cross-platform DBM equivalent?
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 

Wishing for type safe value IO in OCaml for 2003!

-- Brian

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: