Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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

Good night!


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: