Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* using functors in objects
@ 2008-04-10  0:52 Jacques Le Normand
  2008-04-10 12:05 ` [Caml-list] " Andrej Bauer
  0 siblings, 1 reply; 4+ messages in thread
From: Jacques Le Normand @ 2008-04-10  0:52 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

hello caml-list,
I would like to do something like this:

module A (X: sig type t end) =
struct
  class c =
  object
    val b = (None : X.t option)
  end
end

class d =
module Y = A(struct type t = d end)
object
  inherit Y.c
end

which, of course, gives me a syntax error. is it possible to bind a module
inside a class?
--Jacques

[-- Attachment #2: Type: text/html, Size: 433 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-11 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-10  0:52 using functors in objects Jacques Le Normand
2008-04-10 12:05 ` [Caml-list] " Andrej Bauer
2008-04-11  7:52   ` Julien Signoles
2008-04-11 11:59     ` Andrej Bauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox