Jacques Le Normand wrote:
hello caml list,
if I marshal an object of class c and I write the result in a file
foo.txt and, later on, I add methods to c, can I read the object in
foo.txt and call the new methods on the object?
First, a *.txt extension for a binary file (written thru Marshal.*
functions) is very confusing.
Second, marshalling of any closures (including methods shared by
objects) can only be unmarshalled by the exact same binary. So if you
add/change code, it should not work.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs