caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be>
To: Richard Jones <rich@annexia.org>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] What does underscore mean in this type expression?
Date: Sat, 30 Aug 2008 13:38:31 +0200 (CEST)	[thread overview]
Message-ID: <20080830.133831.122629365592826302.Christophe.Troestler+ocaml@umh.ac.be> (raw)
In-Reply-To: <20080830112718.GA25303@annexia.org>

On Sat, 30 Aug 2008 12:27:18 +0100, Richard Jones wrote:
> 
>     val get_domains :
>       (_[> `R ] as 'a) Connect.t ->
>   is not included in
>     val get_domains :
>       ([> `R ] as 'a) Connect.t ->
> 
> This syntax doesn't appear to be documented in the manual (unless it's
> related to '_a).  What does it mean?

It is a weak type as you guessed.  To convince you of that, here is
some code:

# let x = ref `X;;
val x : _[> `X ] ref = {contents = `X}

Cheers,
C.


  reply	other threads:[~2008-08-30 11:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 11:27 Richard Jones
2008-08-30 11:38 ` Christophe TROESTLER [this message]
2008-08-30 13:03   ` [Caml-list] " Richard Jones
2008-08-30 13:57     ` Christophe TROESTLER
2008-08-30 19:29       ` Richard Jones

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=20080830.133831.122629365592826302.Christophe.Troestler+ocaml@umh.ac.be \
    --to=christophe.troestler+ocaml@umh.ac.be \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /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).