Browse thread
[Caml-list] marshalling polymorphic variants
- henri dubois-ferriere
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-06-28 (21:02) |
From: | henri dubois-ferriere <henridf@g...> |
Subject: | [Caml-list] marshalling polymorphic variants |
hi, in the simple case below, it is possible to marshal out a ([`A | `B] list), and then read it back as a [> `A | `B | `C] list. can this behavior be counted on , or is it not something an application can assume to always work? thanks henri # Marshal.to_channel oc ([`A; `B] : [`A | `B] list) [];; - : unit = () # let a = (Marshal.from_channel ic : [> `A| `B | `C] list);; val a : [> `A | `B | `C ] list = [`A; `B] ------------------- 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