caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@inria.fr>
To: skaller <skaller@users.sourceforge.net>
Cc: "nicolas.pouillard" <nicolas.pouillard@gmail.com>,
	"jake.donham" <jake.donham@skydeck.com>,
	caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild: args to tags?
Date: Mon, 24 Sep 2007 17:23:45 +0200	[thread overview]
Message-ID: <1190644392-sup-9865@ausone.inria.fr> (raw)
In-Reply-To: <1190642617.6025.9.camel@rosella.wigram>

Excerpts from skaller's message of Mon Sep 24 16:03:37 +0200 2007:
> On Mon, 2007-09-24 at 14:29 +0200, Nicolas Pouillard wrote:
> > Excerpts from jake.donham's message of Tue Sep 18 20:01:56 +0200 2007:
> > > Hi,
> > > 
> > > Is there a way to pass arguments to a preprocessor via the _tags file? 
> > 
> > Yes,  but  that's  not  what  you  want.  Moreover  this feature is not really
> > encouraged.
> 
> Just my 2c .. I think all this stuff is wrong. I think it should be
> done like this:

Being  able  to specify things like syntax extensions in the same place can be
very  precious  and not incompatible with an "in the file itself" way of doing
so.

> (* My Ocaml File .. *)
> (*#Syntax Mycamlp4syn *) (* for compatibility *)
> #syntax Mycamlp4syn;     (* better *)

This  sounds  like  a  good  idea.  That's  not a new one and it was our first
choice  when  designing  ocamlbuild. However after some reflections we decided
that  one  can  first do _tags method and then provide a way to read tags from
the file itself.

The  main  problem  with  the  solution with embedded tags is that one must at
least  define  a  how to read these annotations. This is not that easy since a
.ml  file  can  be  a  pre-processed file with a totally different syntax. One
moreover  don't  want  to  only  focus  on  OCaml  files  but also C files for
instance.

I hope this makes our first decision clear...

Regards,
-- 
Nicolas Pouillard aka Ertai


  reply	other threads:[~2007-09-24 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 18:01 Jake Donham
2007-09-24 12:29 ` [Caml-list] " Nicolas Pouillard
2007-09-24 14:03   ` skaller
2007-09-24 15:23     ` Nicolas Pouillard [this message]
2007-09-24 17:38       ` skaller

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=1190644392-sup-9865@ausone.inria.fr \
    --to=nicolas.pouillard@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=jake.donham@skydeck.com \
    --cc=nicolas.pouillard@gmail.com \
    --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).