caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Dash, Santanu" <s.dash@herts.ac.uk>
To: "Jérémie Dimino" <jeremie@dimino.org>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] file specific outputting
Date: Tue, 10 Jul 2012 13:39:40 +0100	[thread overview]
Message-ID: <1507E81B-3251-4D43-9D87-AB9369A98606@herts.ac.uk> (raw)
In-Reply-To: <20120710141644.7eec1b5a@caladan.esterel-technologies.com>

Thank you Jérémie and Gabriel for the quick response. That answers my question perfectly.

Best regards,
Santanu

On 10 Jul 2012, at 13:16, Jérémie Dimino wrote:

> Le Tue, 10 Jul 2012 11:50:24 +0100,
> "Dash, Santanu" <s.dash@herts.ac.uk> a écrit :
> 
>> Can someone direct me on the best way to go about this? Is there a
>> variable in the compiler that stores the filename of the file
>> currently being compiled?
> 
> There is Location.input_name. It is set by the compiler before parsing
> a source file (file "driver/pparse.ml", function "file"). Note that if
> there are multiple source files on the command line it will be
> modified for each one of them.
> 
> -- 
> Jérémie


      reply	other threads:[~2012-07-10 12:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 10:50 Dash, Santanu
2012-07-10 11:21 ` Gabriel Scherer
2012-07-10 12:16 ` Jérémie Dimino
2012-07-10 12:39   ` Dash, Santanu [this message]

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=1507E81B-3251-4D43-9D87-AB9369A98606@herts.ac.uk \
    --to=s.dash@herts.ac.uk \
    --cc=caml-list@inria.fr \
    --cc=jeremie@dimino.org \
    /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).