From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA00446; Fri, 27 Dec 2002 19:03:58 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA26718 for ; Fri, 27 Dec 2002 19:03:58 +0100 (MET) Received: from grace.speakeasy.org (grace.speakeasy.org [216.254.0.2]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id gBRI3uH18280 for ; Fri, 27 Dec 2002 19:03:57 +0100 (MET) Received: (qmail 9404 invoked by uid 36130); 27 Dec 2002 18:03:55 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Dec 2002 18:03:55 -0000 Date: Fri, 27 Dec 2002 10:03:55 -0800 (PST) From: brogoff@speakeasy.net To: Pierre Weis cc: Dmitry Bely , "caml-list@inria.fr" Subject: Re: [Caml-list] Cross-platform DBM equivalent? In-Reply-To: <200212271319.OAA25223@pauillac.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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