<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/de08834a5fbc23e3ee660768c9c46ab6"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-01-14T08:54:44"
  subject="Re: [Caml-list] why Hashtbl.t are not covarint?"
  prev="2009/01/f07eb010cca2eff83e4c7a391c1beec7"
  next="2009/01/d009a32338fe2358180636ec38f25ff7"
  prev-in-thread="2009/01/f07eb010cca2eff83e4c7a391c1beec7"
  prev-thread="2009/01/ae503c1c2f4bb9e29394aac85b4110d9"
  next-thread="2009/01/d009a32338fe2358180636ec38f25ff7"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="why Hashtbl.t are not covarint?">
<msg 
  url="2009/01/f07eb010cca2eff83e4c7a391c1beec7"
  from="Radzevich Belevich &lt;radzevich.belevich@g...&gt;"
  author="Radzevich Belevich"
  date="2009-01-14T08:02:40"
  subject="why Hashtbl.t are not covarint?">
<msg 
  url="2009/01/de08834a5fbc23e3ee660768c9c46ab6"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-01-14T08:54:44"
  subject="Re: [Caml-list] why Hashtbl.t are not covarint?">
</msg>
</msg>
</thread>

<contents>
Radzevich Belevich a écrit :
&gt; hashtbl.mli: type ('a,'b) t
&gt; 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

</contents>

</message>

