caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Including code from a .cm[ox] into another .cm[ox]
@ 2009-11-12 12:16 Guillaume Yziquel
  2009-11-12 12:41 ` [Caml-list] " Philippe Veber
       [not found] ` <721f7f5a0911120441h7706cd02ud9b6b993532b88f5@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Guillaume Yziquel @ 2009-11-12 12:16 UTC (permalink / raw)
  To: caml-list

Hello.

Imagine I have a file named a.ml containing

> module C = struct
>   include B
> end

and a file named b.ml containing the code

> let f x = x + 1

When I compile everything to .cmo files, I cannot load a.cmo from the 
toplevel without loading b.cmo beforehand.

Is there a way to make the 'include B' statement to include the code of 
the B module in the C submodule directly so that it is not required to 
load the b.cmo file before loading the a.cmo file?

That would be extremely useful to me...

All the best,

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/


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

end of thread, other threads:[~2009-11-12 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-12 12:16 Including code from a .cm[ox] into another .cm[ox] Guillaume Yziquel
2009-11-12 12:41 ` [Caml-list] " Philippe Veber
     [not found] ` <721f7f5a0911120441h7706cd02ud9b6b993532b88f5@mail.gmail.com>
     [not found]   ` <4AFC0515.5050306@citycable.ch>
2009-11-12 13:35     ` Philippe Veber
2009-11-12 14:16       ` Guillaume Yziquel

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