From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA13677; Tue, 29 Jun 2004 10:45:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA14602 for ; Tue, 29 Jun 2004 10:45:41 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5T8jeSH027637 for ; Tue, 29 Jun 2004 10:45:40 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BfEFF-0002rs-00; Tue, 29 Jun 2004 09:45:37 +0100 Date: Tue, 29 Jun 2004 09:45:37 +0100 To: henri dubois-ferriere Cc: caml-list@inria.fr Subject: Re: [Caml-list] marshalling polymorphic variants Message-ID: <20040629084537.GA10992@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 40E12C34.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 marshalling:01 2004:99 counted:01 team's:01 ltd:98 variants:01 0200,:01 polymorphic:01 marshal:01 henri:03 wrote:03 explicitly:03 obj:03 behavior:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment 'There is a joke about American engineers and French engineers. The American team brings a prototype to the French team. The French team's response is: "Well, it works fine in practice; but how will it hold up in theory?"' ------------------- 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