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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 030B0BB84 for ; Mon, 8 Sep 2008 19:34:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroDAGr/xEjAXQImiGdsb2JhbACSRQEBAQ8goziBZg X-IronPort-AV: E=Sophos;i="4.32,359,1217800800"; d="scan'208";a="16712465" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 08 Sep 2008 19:34:54 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m88HYrXl011215 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 8 Sep 2008 19:34:54 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnYEAOj+xEjCpx6vamdsb2JhbACSRQ0FCAYSoy2BZg X-IronPort-AV: E=Sophos;i="4.32,359,1217800800"; d="scan'208";a="28944683" Received: from smtpka.univ-orleans.fr (HELO ka.univ-orleans.fr) ([194.167.30.175]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Sep 2008 19:34:53 +0200 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by ka.univ-orleans.fr (Postfix) with ESMTP id 4C03A12AD49; Mon, 8 Sep 2008 19:34:53 +0200 (CEST) Received: from [192.168.0.12] (ras75-4-82-235-58-110.fbx.proxad.net [82.235.58.110]) by smtps.univ-orleans.fr (Postfix) with ESMTP id 62C8236E60; Mon, 8 Sep 2008 19:34:56 +0200 (CEST) Subject: Re: [Caml-list] Replacing Pervasives? From: David Teller To: Romain Bardou Cc: OCaml In-Reply-To: <48C53F7F.4090805@lri.fr> References: <1220861166.11009.7.camel@Blefuscu> <1220865475.11009.12.camel@Blefuscu> <48C4F8BB.60408@lri.fr> <1220871079.11009.18.camel@Blefuscu> <48C53F7F.4090805@lri.fr> Content-Type: text/plain Date: Mon, 08 Sep 2008 19:35:04 +0200 Message-Id: <1220895304.11009.38.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 48C5623D.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; pervasives:01 univ-orleans:01 0200,:01 stdlib:01 pervasives:01 cmo:01 ocamlc:01 ocamlc:01 -pp:01 -pp:01 ml':01 camlp:01 cheers:01 univ-orleans:01 lifo:01 On Mon, 2008-09-08 at 17:06 +0200, Romain Bardou wrote: > In other word it's as if you changed your "official" > stdlib/Pervasives.cmo except that it's cleanier as you don't actually > override it (which would change your Pervasives for all your projects). > > I didn't try it though, so maybe I'm missing something. Well, I did :) Technically, it fails because you have to name your new module Pervasives and thus cause a conflict with the original Pervasives. > Basically, just use any hack which can replace your ocamlc by a script > which adds "open Myperv;;\n" before calling ocamlc ^^ Yes, that's the kind of things I have in mind. Unfortunately, it seems that ocamlc only supports one "-pp" tag. So if I use a simple "-pp 'cat myprefix.ml'", I become incompatible with Camlp4 :/ Any other idea? Cheers, David -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller Angry researcher: French Universities need reforms, but the LRU act brings liquidations.