Version française
Home     About     Download     Resources     Contact us    
Browse thread
local modules in classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Le Normand <rathereasy@g...>
Subject: local modules in classes
Dear caml-list,
it seems that local modules can't be defined in class definitions. the
following gives a syntax error:

class foo =
  let module M =
      struct
    type t = [`Foo]
      end
  in
object end

is there a reason for this?
--Jacques L.