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
Re: [Caml-list] XML, XSL, eXcetera
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-05 (08:07)
From: Stefano Zacchiroli <zack@c...>
Subject: Re: [Caml-list] XML, XSL, eXcetera
On Fri, Jul 05, 2002 at 12:43:42AM +0200, Alessandro Baretta wrote:
> How would you do that? With a sort of "toplevel server" 
> waiting for connections and dynamically compiling and 
> linking into its environment the code sent to it? Is 
> anything like this already around?

Sure, it's named "/usr/bin/ocaml" :-)

Try this script:

  #!/usr/bin/ocamlrun /usr/bin/ocaml
  print_endline "Hello, world!"

You can use all toplevel directives so you can also use libraries that
support dynamic loading. BTW, if you want to use a library that doesn't
support dynamic loading you have to use a relinked ocaml interpreter or
you will be in trouble.

Maybe I've misunderstood your question ...


Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy | ICQ# 33538863 |
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: