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
[Caml-list] Error during partial linking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Error during partial linking
On Tue, Oct 22, 2002 at 04:38:48PM -0700, Chris Hecker wrote:

> >That is what -pack is for, isn't it ?

Has anyone though of a way to actually put submodules in separate files.
Ada allows this by placing the modules in separate files (you can still
code the submodule (package) in the one file).  The GNU Ada compiler
uses naming conventions to resolve this.

For example:

A file

would be the module Std.List

We have to figure out how this interacts with the module, but
this is the general idea.

This is actually the single feature I've wished the ocaml module system
had.  The Ada approach also allows you to add submodules after the fact.

One proposal would be that before compiling, you have to
compile  When std-list.cmo is linked, the new module (List) is
added to the std's names.  There is a possibility of duplicate names,
but camls seems to handle that normally by just replacing the previous

Dave Brown
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: