Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ANN] ocamlscript 1.1
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-10-03 (21:00)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] [ANN] ocamlscript 1.1
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:

# 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:


(*! 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 Jambon, PhD
Freedom for the regexps!