From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 51420BB84 for ; Sun, 22 Jun 2008 01:28:00 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosAAOYqXUjUNQVbo2dsb2JhbACSaQEBAQEBAQUHCAcRmwM X-IronPort-AV: E=Sophos;i="4.27,684,1204498800"; d="scan'208";a="14225665" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 22 Jun 2008 01:28:00 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m5LNRx2N012234 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 22 Jun 2008 01:28:00 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosAAOYqXUjUNQVbo2dsb2JhbACSaQEBAQEBAQUHCAcRmwM X-IronPort-AV: E=Sophos;i="4.27,684,1204498800"; d="scan'208";a="14225664" Received: from postbode01.versateladsl.be ([212.53.5.91]) by mail1-smtp-roc.national.inria.fr with ESMTP; 22 Jun 2008 01:27:59 +0200 Received: (qmail 3187 invoked by uid 0); 21 Jun 2008 23:27:42 -0000 Received: from unknown (HELO poincare.swapping.umh.ac.be) ([83.182.209.82]) (envelope-sender ) by smtp.versateladsl.be (qmail-ldap-1.03) with SMTP for < >; 21 Jun 2008 23:27:42 -0000 Received: from [127.0.0.1] (helo=localhost ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.69) (envelope-from ) id 1KACUq-0007nP-DL; Sun, 22 Jun 2008 01:27:52 +0200 Date: Sun, 22 Jun 2008 01:27:52 +0200 (CEST) Message-Id: <20080622.012752.1098181329612502108.Christophe.Troestler+ocaml@umh.ac.be> To: David.Teller@univ-orleans.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] Polymorphic variant as a witness? From: Christophe TROESTLER In-Reply-To: <1214089919.6190.13.camel@Blefuscu> References: <1214089919.6190.13.camel@Blefuscu> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 6.0.51 on Emacs 22.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 485D8E7F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 mutable:01 polymorphic:01 wrote:01 caml-list:01 immutable:01 umh:01 variant:02 macro:03 let:03 On Sun, 22 Jun 2008 01:11:59 +0200, David Teller wrote: > > I could have a value (let's call it "witness") with type > [> ] ref Why do you want it to be mutable? > which I could "touch" into becoming > [> `A] ref Are you expecting to write [touch `A witness] so [witness] becomes of type [[> `A] ref]? If you can do with an immutable [witness], then you can write a macro to that effet (use: [let witness' = TOUCH `A witness]). What exactly is your purpose? Regards, C.