From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id A8787BB84 for ; Mon, 8 Sep 2008 12:04:14 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroDAHCVxEjAXQIniGdsb2JhbACSRAEBAQ8goVKBZg X-IronPort-AV: E=Sophos;i="4.32,357,1217800800"; d="scan'208";a="28924204" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Sep 2008 12:04:14 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m88A44Zj032444 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 8 Sep 2008 12:04:13 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroDAOqVxEiBrw8EiGdsb2JhbACSRAEBAQ8goVGBZg X-IronPort-AV: E=Sophos;i="4.32,357,1217800800"; d="scan'208";a="16956907" Received: from ext.lri.fr ([129.175.15.4]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 08 Sep 2008 12:04:07 +0200 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 4C867A47DA; Mon, 8 Sep 2008 12:04:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xZ22UCEzARhF; Mon, 8 Sep 2008 12:04:07 +0200 (CEST) Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id 35D26A46D7; Mon, 8 Sep 2008 12:04:07 +0200 (CEST) Received: from [129.175.4.107] (lri4-107 [129.175.4.107]) by smtp.lri.fr (Postfix) with ESMTP id 395BFE0554; Mon, 8 Sep 2008 12:04:07 +0200 (CEST) Message-ID: <48C4F8BB.60408@lri.fr> Date: Mon, 08 Sep 2008 12:04:43 +0200 From: Romain Bardou User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: David Teller Cc: OCaml Subject: Re: [Caml-list] Replacing Pervasives? References: <1220861166.11009.7.camel@Blefuscu> <1220865475.11009.12.camel@Blefuscu> In-Reply-To: <1220865475.11009.12.camel@Blefuscu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 48C4F894.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lri:01 pervasives:01 camlp:01 foo:01 0200,:01 compiler:01 pervasives:01 ocamlc:01 stdlib:01 ocamlc:01 -nostdlib:01 wrote:01 caml-list:01 seems:03 module:03 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