<?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="2002/07/70faaf98f4dc639bc10a62a5b89685a5"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-17T23:05:28"
  subject="[Caml-list] Exceptions local to classes"
  prev="2002/07/fe9646fa169c9ecb8e15a547bbb95c87"
  next="2002/07/4e63b5dcb91018e9a9e0ae72032489d8"
  prev-thread="2002/07/fe9646fa169c9ecb8e15a547bbb95c87"
  next-thread="2002/07/647457434ab87dabf18062d5a922a07a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Exceptions local to classes">
<msg 
  url="2002/07/70faaf98f4dc639bc10a62a5b89685a5"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-17T23:05:28"
  subject="[Caml-list] Exceptions local to classes">
</msg>
</thread>

<contents>
I'm trying to define an exception which is only meaningful 
inside a given class. I thought I should use a local module, 
but apparently this does not work. Wrong with this?

class a =
   let module Ex = struct
     exception E
   end in
object
   method ...
end

Good night!

Alex

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

