From: John Prevost <j.prevost@gmail.com>
To: Thomas Fischbacher <thomas.fischbacher@physik.uni-muenchen.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Arg parsing
Date: Thu, 4 Nov 2004 10:28:06 -0500 [thread overview]
Message-ID: <d849ad2a041104072810753c71@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0411041541060.12372@eiger.cip.physik.uni-muenchen.de>
On Thu, 4 Nov 2004 15:42:47 +0100 (CET), Thomas Fischbacher
<thomas.fischbacher@physik.uni-muenchen.de> wrote:
> The point is, I have something.ml which I can compile to an application
> that parses its own args. Now I want to be able to #use "something.ml"
> from within ocaml in such a way that it operates on the extra application
> args I passed to the ocaml interpreter without having to change any code.
Perhaps if you explained why you want to do this, it would be easier
for us to help you. For example, if you're using #use to test out
argument parsing code, perhaps this could help you:
module Sys =
struct
include Sys
let argv = [| "testprogram"; "my"; "arguments"; "for"; "testing" |]
end
Other than that, I'm having a *really* hard time figuring out why you
would want to examine your command line arguments from an interactive
program.
John.
next prev parent reply other threads:[~2004-11-04 15:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 19:56 Thomas Fischbacher
2004-10-26 20:13 ` [Caml-list] " William Lovas
2004-10-27 18:17 ` Thomas Fischbacher
2004-10-27 22:13 ` John Prevost
2004-10-28 12:44 ` Thomas Fischbacher
2004-10-28 14:56 ` John Prevost
2004-11-04 14:42 ` Thomas Fischbacher
2004-11-04 15:28 ` John Prevost [this message]
2004-11-04 20:40 ` Thomas Fischbacher
2004-10-26 21:05 ` Problem with location sejourne_kevin
2004-10-26 21:36 ` [Caml-list] " Tiago Dionizio
2004-10-26 22:33 ` Matt Gushee
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=d849ad2a041104072810753c71@mail.gmail.com \
--to=j.prevost@gmail.com \
--cc=caml-list@inria.fr \
--cc=thomas.fischbacher@physik.uni-muenchen.de \
/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