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
[Caml-list] Problem with ocamlmktop
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-11 (16:14)
From: David MENTRE <dmentre@l...>
Subject: Re: [Caml-list] Problem with ocamlmktop

Malte Obbel Forsberg <> writes:

> Now, what I want to do is to use a modified toplevel for mod_ocaml, so I
> won't have to redefine my functions in every ocml (html with ocaml-code
> in it, handled by mod_ocaml) file! I suppose, being quite new to O'Caml,
> I might have missed some other way to achieve this; please enlighten me
> if that is so. :-)

You could use -I option with an absolute path when calling your home
made ocaml.

> What I want to know, then, is if there is some way to define functions
> in an external file and then use the functions in an other interpreted
> file, with "open Site;;" or similar.

Yep. #load "file-name";; or #use "file-name";; depending on your
needs. Then do a open Module or Module.function. See ocaml doc for

 David Mentré <>

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: