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 CAA11529; Mon, 11 Feb 2002 02:43:23 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA11557 for ; Mon, 11 Feb 2002 02:43:22 +0100 (MET) Received: from hotmail.com (f128.law8.hotmail.com [216.33.241.128]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1B1hLD00707 for ; Mon, 11 Feb 2002 02:43:22 +0100 (MET) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 10 Feb 2002 17:43:20 -0800 Received: from 68.82.53.91 by lw8fd.law8.hotmail.msn.com with HTTP; Mon, 11 Feb 2002 01:43:20 GMT X-Originating-IP: [68.82.53.91] From: "Ryan Tarpine" To: caml-list@inria.fr Subject: Re: [Caml-list] Allowing many types Date: Sun, 10 Feb 2002 20:43:20 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Feb 2002 01:43:20.0886 (UTC) FILETIME=[7C585D60:01C1B29D] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >polymorphic variant me be the answer, because you can get back the >type : >... I'm probably missing something obvious, but how do you store a polymorphic variant in a field in a record? Before, when I just used a normal variant type I called "primitive", all I did was type my_object = { object_data : primitive; (* etc. *) } Is there a type that means "any polymorphic variant"? Trying to set type primitive = [ `PTest ] forces only `PTest to be the value of object_data. How can I allow anything to be stored there? Thanks, Ryan Tarpine, rtarpine@hotmail.com "To err is human, to compute divine. Trust your computer but not its programmer." - Morris Kingston _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr