caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Partial module include
@ 2012-09-21 16:37 Pierre-Etienne Meunier
  2012-09-21 16:41 ` David House
  0 siblings, 1 reply; 6+ messages in thread
From: Pierre-Etienne Meunier @ 2012-09-21 16:37 UTC (permalink / raw)
  To: caml-list

Hi,

Is it possible in ocaml to redefine a part of an included module, like in the following code ?

module A=struct
	let a=0
	let b=1
end

module B=struct
	include A
	let b=2
end


Thanks
Pierre

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

end of thread, other threads:[~2012-09-21 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-21 16:37 [Caml-list] Partial module include Pierre-Etienne Meunier
2012-09-21 16:41 ` David House
2012-09-21 16:43   ` Pierre-Etienne Meunier
2012-09-21 16:47     ` David House
2012-09-21 16:55     ` Markus Mottl
2012-09-21 17:47     ` Jeremy Yallop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).