caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Stéphane Glondu" <steph@glondu.net>
To: Radzevich Belevich <radzevich.belevich@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] why Hashtbl.t are not covarint?
Date: Wed, 14 Jan 2009 09:54:42 +0100	[thread overview]
Message-ID: <496DA852.5040508@glondu.net> (raw)
In-Reply-To: <1231920145.2711.8.camel@serphost.localdomain>

Radzevich Belevich a écrit :
> hashtbl.mli: type ('a,'b) t
> Why not "type ('a,+'b) t"?

For the same reason as 'a in 'a ref, i.e. mutable things cannot be
covariant.


Cheers,

-- 
Stéphane


      reply	other threads:[~2009-01-14  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14  8:02 Radzevich Belevich
2009-01-14  8:54 ` Stéphane Glondu [this message]

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=496DA852.5040508@glondu.net \
    --to=steph@glondu.net \
    --cc=caml-list@inria.fr \
    --cc=radzevich.belevich@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).