caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <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?
Date: Sun, 22 Jun 2008 01:27:52 +0200 (CEST)	[thread overview]
Message-ID: <20080622.012752.1098181329612502108.Christophe.Troestler+ocaml@umh.ac.be> (raw)
In-Reply-To: <1214089919.6190.13.camel@Blefuscu>

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.


  reply	other threads:[~2008-06-21 23:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-21 23:11 David Teller
2008-06-21 23:27 ` Christophe TROESTLER [this message]
2008-06-21 23:52   ` [Caml-list] " David Teller
2008-06-23  8:13 ` Romain Bardou
2008-06-23 10:27 ` Jacques Garrigue
2008-06-27  6:00   ` David Teller
2008-06-27  6:38     ` Jacques Garrigue
2008-07-04 13:05 ` Polymorphic variant + phantom type as a witness Gleb Alexeyev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080622.012752.1098181329612502108.Christophe.Troestler+ocaml@umh.ac.be \
    --to=christophe.troestler+ocaml@umh.ac.be \
    --cc=David.Teller@univ-orleans.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).