From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id CF4687EE09 for ; Fri, 26 Oct 2012 20:39:28 +0200 (CEST) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of j.romildo@gmail.com) identity=pra; client-ip=209.85.161.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="j.romildo@gmail.com"; x-sender="j.romildo@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of j.romildo@gmail.com designates 209.85.161.182 as permitted sender) identity=mailfrom; client-ip=209.85.161.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="j.romildo@gmail.com"; x-sender="j.romildo@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-gg0-f182.google.com) identity=helo; client-ip=209.85.161.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="j.romildo@gmail.com"; x-sender="postmaster@mail-gg0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgCAMHXilDRVaG2k2dsb2JhbABEhVG8dQgjAQEBAQkJCwkUBCOCHgEBAQMBEgIeAQ0BGx0BAwELBgUOCi4UDQIJCAEFASITIodRAQMJBgKdTmIJA4wwgnaEeQoZJw1ZiHUBBQyKfmeGDWEDlB6BVIEYiheDLz+EKQ X-IronPort-AV: E=Sophos;i="4.80,654,1344204000"; d="scan'208";a="179121050" Received: from mail-gg0-f182.google.com ([209.85.161.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 26 Oct 2012 20:39:28 +0200 Received: by mail-gg0-f182.google.com with SMTP id l1so713228ggn.27 for ; Fri, 26 Oct 2012 11:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=n/6qCy7BHbU5aAy7col7mLJQEw47AqEHm60iKXEsPqU=; b=fm/n7XiD+sgMb7gAdHt+d9qPmQEkWPd+apbG+Zjp+7EtBUDn74yTBzuLusFyqnpYrV IEF09sOlkrrnzl+UpUninKrHyAuG1ic5MtWM1TW3OfX3GK6VK/9DmTT6icy5GlSvZanE C3vluaLJiLH5QLt9TUM5wYfEKiDJuKNa/JVMMir4eVjOys8VBC1Vy51am3sQDTu3Vwnt fnEgUHVAelxTMVE6YTz+tIq3yZ1QFu3v5WaQnaMz62RQH5jzAO7087GOpG89ht1qmNtO We3I/K1RFT8K+HCCnIYQuFoW0jTq2GPYl4cLYDXE2IrjGNR5MUEhgeEz0BNSTpYJNXuH WOiw== Received: by 10.101.138.10 with SMTP id q10mr7214078ann.51.1351276766969; Fri, 26 Oct 2012 11:39:26 -0700 (PDT) Received: from romildo.localdomain ([200.239.128.55]) by mx.google.com with ESMTPS id d66sm2198780yhe.1.2012.10.26.11.39.25 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Oct 2012 11:39:26 -0700 (PDT) Received: by romildo.localdomain (Postfix, from userid 1000) id 93C1C1F39A7; Fri, 26 Oct 2012 15:45:51 -0200 (BRST) Date: Fri, 26 Oct 2012 15:45:51 -0200 From: =?iso-8859-1?Q?Jos=E9?= Romildo Malaquias To: David House Cc: caml-list@inria.fr Message-ID: <20121026174551.GA20358@romildo.no-ip.org> Mail-Followup-To: David House , caml-list@inria.fr References: <20121026112602.GA2781@romildo.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] Importing specific names On Fri, Oct 26, 2012 at 12:26:02PM +0100, David House wrote: > If you want to list the things you want, rather than listing the > things you don't want, what's wrong with the following? > > let x = Module.x > let y = Module.y > ... > > You could abbreviate that somewhat: > > include (struct > open Module > let x = x > let y = y > ... > end) That does not seem to work with types: (* test.ml *) include (struct open Lexing type position = position end) # #use "test.ml";; File "test.ml", line 4, characters 7-26: Error: The type abbreviation position is cyclic > On Fri, Oct 26, 2012 at 12:26 PM, José Romildo Malaquias > wrote: > > Hello. > > > > It seems that the expression ocaml "open module-path" exposes all names > > exported by module-path. > > > > Is there any way of exposing only a restrict set of names from a > > module-path, instead of all names?