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
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: 2009-04-06 (16:15)
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 =
    type t = [`Foo]
object end

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