Browse thread
[Caml-list] mod_caml Makefile
[
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: | Kenneth Knowles <kknowles@b...> |
| Subject: | [Caml-list] Conditional Compilation (was mod_caml Makefile) |
On Fri, Apr 16, 2004 at 06:17:08PM +0100, Richard Jones wrote: > Another reason why having #ifdef's would be useful ... > > Rich. Conditional compilation... I've mulled this over a bit, anyone want to chat about it? I've seen using the C pre-processor, but that seems pretty crufty. My approach has been to conditionally include different source files with just the code that has to change, but that sometimes makes a weird module layout. Also, OCamlConf has an untested ability to generate really short "config.ml", but this is pretty ugly too. Could MetaOCaml help? (I don't know exactly how much compile-time computation it can do; never used it) Any other ideas? Kenn ------------------- 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