Browse thread
[Caml-list] compile problem
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2002-06-14 (21:08) |
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 "a.ml" > > 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. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners