English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2004-06-29 (17:49)
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 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