Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: "Sébastien Hinderer" <Sebastien.Hinderer@ens-lyon.org>,
	"caml users" <caml-list@inria.fr>
Subject: Re: [Caml-list] Filename.temp_dir_name
Date: Thu, 30 Oct 2014 08:35:51 +0100	[thread overview]
Message-ID: <CAPFanBGX6nftevRiyQPhLJx_apDXFYO3+0tMU5zhsM6YrRJTsg@mail.gmail.com> (raw)
In-Reply-To: <20141029152932.GE13201@pema>

There is the cppo tool of Martin Jambon which is a "serious"
preprocessor for OCaml -- by opposition to prefilter.ml which started
as a sed script and is growing in uncontrolled (but rather reasonable)
ways.
  http://mjambon.com/cppo.html

On Wed, Oct 29, 2014 at 4:29 PM, Sébastien Hinderer
<Sebastien.Hinderer@ens-lyon.org> wrote:
> Dear David,
>
> Many thanks for your prompt and helpful response.
>
>> In batteries[1], see src/batUnix.mliv type [open_flag] which has lines
>> prefixed ##. There is the program build/prefilter.ml and then a suffix
>> rule (search for .mliv.mli) in Makefile which generates batUnix.mli.
>
> Ah yes, seen, thanks. So this is a line-based approach actually.
> I'm wondering whether code has already been written implement a
> block-based approach, i.e. an aproach where one can make several lines
> compiler-version dependent at once?
>
>> In findlib[2], see configure (search for "# bytes?"). It detects
>> whether bytes.cmi exists in the compiler's lib directory (`ocamlc
>> -where`/bytes.cmi). Based on that it therefore determines whether it
>> will generate a dummy META file from the files site-lib-src/bytes or
>> whether it will compile its compatibility library in src/bytes.
>
> Seen also, thanks.
>
> I guess it would also be okay,in a tool, to use that same test and to
> just rpovide the bytes module if it does not exist, rather than
> installing a package...
>
> Thanks!
> Sébastien.
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

  reply	other threads:[~2014-10-30  7:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 12:12 Sébastien Hinderer
2014-10-23 12:50 ` David Allsopp
2014-10-29 14:30   ` Sébastien Hinderer
2014-10-29 14:41     ` David Allsopp
2014-10-29 15:29       ` Sébastien Hinderer
2014-10-30  7:35         ` Gabriel Scherer [this message]
2014-10-30  9:22         ` Sylvain Pogodalla
2014-10-30  9:40           ` Daniel Bünzli
2014-10-30  9:49             ` David Allsopp
2014-10-30 10:04               ` Daniel Bünzli
2014-10-30  9:44           ` Sébastien Hinderer

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=CAPFanBGX6nftevRiyQPhLJx_apDXFYO3+0tMU5zhsM6YrRJTsg@mail.gmail.com \
    --to=gabriel.scherer@gmail.com \
    --cc=Sebastien.Hinderer@ens-lyon.org \
    --cc=caml-list@inria.fr \
    /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