<?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="2003/11/d2b9839832e65a956bdcb77f959a9628"
  from="POUS Damien &lt;dpous@e...&gt;"
  author="POUS Damien"
  date="2003-11-13T11:04:49"
  subject="[Caml-list] classes and module types"
  prev="2003/11/713cebbf306ed0c2ba9eb576f7a36c77"
  next="2003/11/3caf9264583e81a6c34b9092df597891"
  prev-thread="2003/11/b7b5144ae80803da62864d5c58f8efba"
  next-thread="2003/11/3f569e7c0ae6343b3f1d7e892dcba645"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] classes and module types">
<msg 
  url="2003/11/d2b9839832e65a956bdcb77f959a9628"
  from="POUS Damien &lt;dpous@e...&gt;"
  author="POUS Damien"
  date="2003-11-13T11:04:49"
  subject="[Caml-list] classes and module types">
</msg>
</thread>

<contents>
Hi,

&lt;&lt;
class type m_t = object end
class type ['a] c_t = object constraint 'a = #m_t end

module type T = sig
  type t
  class c: [t] c_t
end;;
            Characters 125-126:
    class c: [t] c_t
              ^
The type parameter t does not meet its constraint: it should be
  #m_t as 'a = &lt; .. &gt;
&gt;&gt;

I don't understand why this signature is rejected :
I would say it's ok, since one cannot write a module with this signature
without having t meeting the constraint...

How can I workaround this ?

thanks,
damien


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

