Browse thread
[Caml-list] Programming with modules
[
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: | -- (:) |
| From: | Benjamin Geer <benjamin.geer@m...> |
| Subject: | Re: [Caml-list] Programming with modules |
Richard Jones wrote: > Preprocessing with /lib/cpp is possible: Or you can use modules: -------------------------------------------------- main.ml type maintype = Mytypes.maintype ;; let foo = Helper.foo ;; -------------------------------------------------- mytypes.ml type maintype = int list ;; -------------------------------------------------- helper.ml let foo x y = x + y ;; Ben ------------------- 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