caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kenneth Knowles <kknowles@berkeley.edu>
To: skaller <skaller@users.sourceforge.net>
Cc: Richard Jones <rich@annexia.org>, caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Conditional Compilation (was mod_caml Makefile)
Date: Fri, 16 Apr 2004 11:51:55 -0700	[thread overview]
Message-ID: <20040416185155.GA27591@tallman.kefka.frap.net> (raw)
In-Reply-To: <1082140344.20063.157.camel@pelican.wigram>

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


  reply	other threads:[~2004-04-16 18:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-15 22:46 [Caml-list] mod_caml Makefile Matt Gushee
2004-04-16  8:11 ` Richard Jones
2004-04-16 16:25   ` Ranjan Bagchi
2004-04-16 16:49     ` Matt Gushee
2004-04-16 16:53       ` Richard Jones
     [not found]       ` <Pine.LNX.4.58.0404161000290.14222@manjula.frotz.bogus>
2004-04-16 17:12         ` Matt Gushee
2004-04-16 17:17           ` Richard Jones
2004-04-16 17:27             ` [Caml-list] Conditional Compilation (was mod_caml Makefile) Kenneth Knowles
2004-04-16 18:32               ` skaller
2004-04-16 18:51                 ` Kenneth Knowles [this message]
2004-04-16 20:37                   ` skaller
2004-04-17  0:39               ` Shawn Wagner
2004-04-17  8:46                 ` Martin Jambon
2004-04-16 16:49     ` [Caml-list] mod_caml Makefile Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040416185155.GA27591@tallman.kefka.frap.net \
    --to=kknowles@berkeley.edu \
    --cc=caml-list@pauillac.inria.fr \
    --cc=rich@annexia.org \
    --cc=skaller@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).