caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: "Mikkel Fahnøe Jørgensen" <mikkel@dvide.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4 compilation model
Date: Sun, 25 Jan 2009 09:49:12 +0000	[thread overview]
Message-ID: <20090125094912.GA8018@annexia.org> (raw)
In-Reply-To: <caee5ad80901241215kf0b684aj6d70d3337f74ec5c@mail.gmail.com>

On Sat, Jan 24, 2009 at 09:15:43PM +0100, Mikkel Fahnøe Jørgensen wrote:
> It seems that an enduser program can link with a camlp4 enhanced
> library and magically have its syntax extended without adding camlp4
> to the build process (once the library has been built). For example
> the bitstring library introduces the bitmatch syntax.

No, this isn't so, at least not in bitstring.

You can link your program with bitstring.cma and get access to
the Bitstring.* library functions like the ones here:

http://et.redhat.com/~rjones/bitstring/html/Bitstring.html#reference

but you cannot use the special bitmatch syntax without preprocessing
your source code with camlp4.

It's trivial to add the preprocessor if you use ocamlfind, so in
practice this is not a problem.

Rich.

-- 
Richard Jones
Red Hat


  parent reply	other threads:[~2009-01-25  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 20:15 Mikkel Fahnøe Jørgensen
2009-01-24 20:34 ` [Caml-list] " blue storm
2009-01-25  9:49 ` Richard Jones [this message]
2009-01-25  9:55   ` Mikkel Fahnøe Jørgensen

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=20090125094912.GA8018@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=mikkel@dvide.com \
    /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).