caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Keiko Nakata <keiko@kurims.kyoto-u.ac.jp>
To: christophe.papazian@gmail.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] covariance newb question
Date: Wed, 23 Nov 2005 21:16:29 +0900 (JST)	[thread overview]
Message-ID: <20051123.211629.68536541.keiko@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <5FABF242-1101-4499-8CF5-CF1559F6EECC@essi.fr>

From: Christophe Papazian <christophe.papazian@gmail.com>
> But type t seems to be covariant :
> 
> # let f : 'a t = (fun x -> x);;
> val f : 'a t = <fun>
> # let g : int t = f;;
> val g : int t = <fun>

To my understanding, 
this is an instantiation of the type variable 'a to int,
not subtyping.

Hope this helps.

Keiko NAKATA


  reply	other threads:[~2005-11-23 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 11:37 Christophe Papazian
2005-11-23 12:16 ` Keiko Nakata [this message]
2005-11-27 23:31 ` [Caml-list] " Christophe Raffalli
2005-11-28  7:09   ` Olivier Andrieu

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=20051123.211629.68536541.keiko@kurims.kyoto-u.ac.jp \
    --to=keiko@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=christophe.papazian@gmail.com \
    /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).