<?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/12/89c86bc0dc75f477b32fd1c1d1f8d712"
  from="Henri Dubois-Ferriere &lt;henridf@l...&gt;"
  author="Henri Dubois-Ferriere"
  date="2003-12-05T12:03:02"
  subject="[Caml-list] coercing to a #-type"
  prev="2003/12/f95e21d4439f6a407a7b0fba2f509364"
  next="2003/12/4e3edb591fff6f9df5be1978da6a8c54"
  next-in-thread="2003/12/4e3edb591fff6f9df5be1978da6a8c54"
  prev-thread="2003/12/f95e21d4439f6a407a7b0fba2f509364"
  next-thread="2003/12/15aed9cdaa87e3077ca1de4ee1e768ca"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] coercing to a #-type">
<msg 
  url="2003/12/89c86bc0dc75f477b32fd1c1d1f8d712"
  from="Henri Dubois-Ferriere &lt;henridf@l...&gt;"
  author="Henri Dubois-Ferriere"
  date="2003-12-05T12:03:02"
  subject="[Caml-list] coercing to a #-type">
<msg 
  url="2003/12/4e3edb591fff6f9df5be1978da6a8c54"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-12-05T12:56:53"
  subject="Re: [Caml-list] coercing to a #-type">
</msg>
</msg>
</thread>

<contents>
can coercing an object to a #-type ever change the type of the object?

[i tried to come up with some instance where this would happen, but could 
not, and on thinking about it i would guess that since a #-type is 'open', 
it makes no sense to coerce to such a type.]


A somewhat related question:

class a = object method bla = 1 end
are the types 

#a

and 

&lt; bla : int; ..&gt; 

equivalent? (in the sense that using on instead of the other will 
always give identical results)


Thanks
Henri

-------------------
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>

