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

[ 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 "", 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?


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