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] compile problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] compile problem
On Fri, 14 Jun 2002, dengping zhu wrote:
> You are right. After I removed all the "module A = struct ... end"  
> from the ml and mli files, it's ok now. 

This is a common beginner problem, which would probably cease to exist
if the toplevel supported other ways of loading module files (see below).

> But I still can not figure out why all my original files works well if I
> enter the ocaml mode and 
> # #use "a.mli"
> # #use ""
> I think that it should be consistent in both ways.

I think so, too. Question to the developers: why not add another form of
"#use", which automatically wraps the contents of files into modules
of the corresponding name? This should be trivial to do and would also
allow more consistent ways of scripting.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: