Browse thread
Re: [Caml-list] XML, XSL, eXcetera
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 ... Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners