From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8A3EEBC3F for ; Wed, 27 Oct 2004 20:17:13 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9RIHCJM022722 for ; Wed, 27 Oct 2004 20:17:13 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA27167 for ; Wed, 27 Oct 2004 20:17:12 +0200 (MET DST) Received: from mail.physik.uni-muenchen.de (mail.physik.uni-muenchen.de [192.54.42.129]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9RIHCjT022718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 27 Oct 2004 20:17:12 +0200 Received: from localhost (unknown [127.0.0.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id DE31720031; Wed, 27 Oct 2004 20:17:11 +0200 (CEST) Received: from mail.physik.uni-muenchen.de ([127.0.0.1]) by localhost (mail.physik.uni-muenchen.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24721-01-37; Wed, 27 Oct 2004 20:17:09 +0200 (CEST) Received: from mailhost.cip.physik.uni-muenchen.de (kaiser.cip.physik.uni-muenchen.de [141.84.136.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id B58E32002D; Wed, 27 Oct 2004 20:17:09 +0200 (CEST) Received: from eiger.cip.physik.uni-muenchen.de (eiger.cip.physik.uni-muenchen.de [141.84.136.54]) by mailhost.cip.physik.uni-muenchen.de (Postfix) with ESMTP id 917CB26E89; Wed, 27 Oct 2004 20:17:05 +0200 (CEST) Received: by eiger.cip.physik.uni-muenchen.de (Postfix, from userid 3092) id 8DB5C3E8A; Wed, 27 Oct 2004 20:17:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by eiger.cip.physik.uni-muenchen.de (Postfix) with ESMTP id 8B6B82D713; Wed, 27 Oct 2004 20:17:05 +0200 (CEST) Date: Wed, 27 Oct 2004 20:17:05 +0200 (CEST) From: Thomas Fischbacher To: William Lovas Cc: caml-list@inria.fr Subject: Re: [Caml-list] Arg parsing In-Reply-To: <20041026201338.GA29858@force.stwing.upenn.edu> Message-ID: References: <20041026201338.GA29858@force.stwing.upenn.edu> X-BOFH: Daemons did it MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at physik.uni-muenchen.de X-Miltered: at nez-perce with ID 417FE628.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 417FE628.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 parsing:01 lovas:01 wrote:01 parsing:01 module's:01 ocaml:01 toplevel:01 parses:01 ocaml:01 ...:98 cip:98 cip:98 lambda:01 lambda:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: On Tue, 26 Oct 2004, William Lovas wrote: > You can do this with the standard Arg module. For example: > > Arg.parse [...; ("--", Arg.Rest anon_fun, " stop parsing options")] > anon_fun > usage_msg > > See the Arg module's documentation for details. That's not what I mean. I want to be able to start "ocaml" in such a way that I get the toplevel, but can #use code which parses the args that were given originally to ocaml. -- regards, tf@cip.physik.uni-muenchen.de (o_ Thomas Fischbacher - http://www.cip.physik.uni-muenchen.de/~tf //\ (lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y) V_/_ (if (= x 0) y (g g (- x 1) (* x y)))) n 1)) (Debian GNU)