Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Exceptions local to classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: [Caml-list] Exceptions local to classes
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