Browse thread
Replacing Pervasives?
[
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: | Romain Bardou <Romain.Bardou@l...> |
| Subject: | Re: [Caml-list] Replacing Pervasives? |
David Teller a écrit : > Technically, I guess I can write a Camlp4 extension just to add "open > Foo" at the beginning of every file, but it seems a bit complex for such > a simple task. Any other idea? > > Thanks, > David > > > On Mon, 2008-09-08 at 10:06 +0200, David Teller wrote: >> Dear list, >> >> Does anyone know how I can get a module to be auto-opened by the >> compiler, in the same vein as Pervasives? I would very much prefer not >> having to tweak around the source code of ocamlc for this purpose. >> >> Thanks, >> David >> I guess you could try and make your own stdlib directory, and then call ocamlc using: ocamlc -nostdlib -I mystdlib or something like that... -- Romain Bardou