Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] marshalling polymorphic variants
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] marshalling polymorphic variants
Richard Jones wrote:
> On Mon, Jun 28, 2004 at 11:02:25PM +0200, henri dubois-ferriere wrote:
> 
>>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?
> 
> 
> Better to use Obj.magic if you're explicitly trying to subvert the
> type system?
> 
> Rich.
> 

It's better to use C if you are explicitly trying to subvert the type 
system...

Alex

-------------------
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