From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id C19DDBB94 for ; Mon, 3 Oct 2005 23:00:32 +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 j93L0W6s008821 for ; Mon, 3 Oct 2005 23:00:32 +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 XAA16551 for ; Mon, 3 Oct 2005 23:00:31 +0200 (MET DST) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j93L0Twn008816 for ; Mon, 3 Oct 2005 23:00:30 +0200 Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 88D7DCCF575; Mon, 3 Oct 2005 17:00:23 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Mon, 03 Oct 2005 17:00:23 -0400 X-Sasl-enc: Qe1BMBylJSsSQcQbx+/id2YxPADDsaKeZXde3Lf0FZjN 1128373222 Received: from [172.16.67.160] (burnham.ljcrf.edu [192.231.106.2]) by frontend2.messagingengine.com (Postfix) with ESMTP id 91D39570394; Mon, 3 Oct 2005 17:00:21 -0400 (EDT) Date: Mon, 3 Oct 2005 14:00:00 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@munge To: David MENTRE Cc: caml-list@inria.fr Subject: Re: [Caml-list] [ANN] ocamlscript 1.1 In-Reply-To: <87oe66qv1x.fsf@linux-france.org> Message-ID: References: <87oe66qv1x.fsf@linux-france.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at nez-perce with ID 43419BF0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43419BED.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlfind:01 dependencies:01 flags:01 usr:01 pcre:01 lacaml:01 lablgtk:01 endline:01 usr:01 pcre:01 lacaml:01 lablgtk:01 ocaml:01 endline:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 On Mon, 3 Oct 2005, David MENTRE wrote: > I've just released version 1.1 of ocamlscript. [...] I think it's a great idea, but I have a couple of questions: - how do you specify more than one library (on my OS everything that follows #!/path/to/ocamlscript is treated as only one argument)? - could packages be loaded with ocamlfind so that we don't have to worry about dependencies, -I flags and camlp4 libraries? Personnally, I would really appreciate if could write a script is a style like this: ------------ #!/usr/bin/ocamlscript # packs = micmatch_pcre lacaml lablgtk (* my program starts here, the first line which doesn't start with a # *) let _ = print_endline "Hello" ------------ or maybe more like that: ------------ #!/usr/bin/ocamlscript (*! packs = micmatch_pcre lacaml lablgtk *) (* only the first ocaml comment is parsed by ocamlscript, if there is no code before and starts with ! *) let _ = print_endline "Hello" ------------ Martin -- Martin Jambon, PhD http://martin.jambon.free.fr Freedom for the regexps! http://martin.jambon.free.fr/micmatch-howto.html