Version française
Home     About     Download     Resources     Contact us    
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: Re: [Caml-list] Conditional Compilation (was mod_caml Makefile)
On Sat, Apr 17, 2004 at 04:32:25AM +1000, skaller wrote:
> camlp4 has conditional compilation.. and lots more :D
> but it only works with Ocaml ..

Oh, cool, I'm not really hip to camlp4.
 
> In general the answer is the same as I keep giving:
> if you have a general purpose language and use it
> as a code generator, the very notion of 'conditional
> compilation' as some kind of special feature makes
> you roll on the floor laughing.
> Its a programming language, of course it has
> conditionals!

Well, right.  A build-time script, whether python, O'Caml, or whatever can
generate code (or generate another program to generate another program to
generate code), but that's no fun.  I'd much prefer a mini language that takes
valid O'Caml in and is guaranteed to spit valid O'Caml out.  I suspect camlp4 is
what I want.

If I really needed a code-generator I'm always free to use my configure script
to do it, that is just a relatively feature-bare and unsafe approach.

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