<?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/10/bb6652d3ee0174ff91bc648fa5125d46"
  from="Guillaume Châtelet &lt;guillaume.chatelet@r...&gt;"
  author="Guillaume Châtelet"
  date="2003-10-14T13:17:16"
  subject="[Caml-list] polymorphism and try"
  prev="2003/10/9fbf3af3346026a5d782ec2c1884b8e3"
  next="2003/10/686468535e6100213e2e85bca8be51f1"
  next-in-thread="2003/10/6a954bc9190c6a9a31a6dca1225057fe"
  prev-thread="2003/10/4e4b1aa34c29e58e6db93315ea915984"
  next-thread="2003/10/686468535e6100213e2e85bca8be51f1"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] polymorphism and try">
<msg 
  url="2003/10/bb6652d3ee0174ff91bc648fa5125d46"
  from="Guillaume Châtelet &lt;guillaume.chatelet@r...&gt;"
  author="Guillaume Châtelet"
  date="2003-10-14T13:17:16"
  subject="[Caml-list] polymorphism and try">
<msg 
  url="2003/10/6a954bc9190c6a9a31a6dca1225057fe"
  from="Artem Prisyznuk &lt;tema@s...&gt;"
  author="Artem Prisyznuk"
  date="2003-10-14T14:48:39"
  subject="Re: [Caml-list] polymorphism and try">
</msg>
</msg>
</thread>

<contents>
I have a problem with polymorphism in a try:

#  let my_try f = try f with e -&gt; raise e ;;
val my_try : 'a -&gt; 'a  = &lt;fun&gt;

# let my_id = my_try (fun x -&gt; x) ;;
- : '_a -&gt; '_a = &lt;fun&gt;

# let my_array_get = my_try Array.get;;
val my_array_get : '_a array -&gt; int -&gt; '_a = &lt;fun&gt;

etc ....
Why my_id and my_array_get are not polymorphic like i whish to ? 

-- 
 Guillaume Châtelet

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

