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


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