From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 948FFBBAF for ; Fri, 21 May 2010 10:32:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoCAKLh9UtKfVI2mGdsb2JhbACSBowSCBUBAQEBAQgJDAcRIqx6ggGFHS6ITgEBAwWFDQQ X-IronPort-AV: E=Sophos;i="4.53,277,1272837600"; d="scan'208";a="50997275" Received: from mail-ww0-f54.google.com ([74.125.82.54]) by mail3-smtp-sop.national.inria.fr with ESMTP; 21 May 2010 10:32:59 +0200 Received: by wwb18 with SMTP id 18so295487wwb.27 for ; Fri, 21 May 2010 01:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=lzZRmS1v637cDPlQMSV2RNyP0UyDXkrNz10lYrQgmQI=; b=rsplo+/Gjz3HENoubP+NMUD/ZioJnOpH8AskotKv/DMrQ67pa/+340pjZFhXD9Niij oRLJb6zoc7EgOd8W7Enu8mChXFmymm7UkQ+itf4LXeK94ZJHV7kG39xazkhWoJuytVyX aCfiPldm6f+9Dhd84Qcd9EB1/TnE2C2xA4go8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=UgDpsbWejwpOeuKkECCxIllJXQcYRzH9BtC9kG94IeT/f1e9M1jDdJ58j6PjPTbpr+ SEQ22HCztR4f48vxNGGdE0Ee8xoEn/Ab2cg5TEQPJuoZd+HClOjoQZ+JrD611qbpuOPn +sfSQcG2cwR8GTX4l/IWiceiTUiFq4wtKCJmM= MIME-Version: 1.0 Received: by 10.216.93.76 with SMTP id k54mr577246wef.224.1274430778852; Fri, 21 May 2010 01:32:58 -0700 (PDT) Received: by 10.216.0.71 with HTTP; Fri, 21 May 2010 01:32:58 -0700 (PDT) Date: Fri, 21 May 2010 10:32:58 +0200 Message-ID: Subject: Private modules in packages From: Hans Ole Rafaelsen To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0016e6d7df9fdd4a540487168979 X-Spam: no; 0.00; rafaelsen:01 -pack:01 foo:01 foo:01 rafaelsen:01 -pack:01 functions:01 functions:01 modules:02 modules:02 module:03 module:03 library:03 library:03 expose:04 --0016e6d7df9fdd4a540487168979 Content-Type: text/plain; charset=ISO-8859-1 Hi, When packing a set of modules into a top module using -pack, is there a way to have some of the modules private to the package? If I have the modules Helper, Foo and Bar. Helper provides helper functions used by Foo and Bar. When I'm packing them into a top mudule P, I do not want to expose the functions of Helper to users of P. Is there some way to achieve this? If not, do anyone know of other ways for packing libraries and keeping some of the modules private to the library? Thanks, Hans Ole Rafaelsen --0016e6d7df9fdd4a540487168979 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

When packing a set of modules into a top module using -pack, is = there a way to have some of the modules private to the package?

If I= have the modules Helper, Foo and Bar. Helper provides helper functions use= d by Foo and Bar. When I'm packing them into a top mudule P, I do not w= ant to expose the functions of Helper to users of P.

Is there some way to achieve this?=A0 If not, do anyone know of other w= ays for packing libraries and keeping some of the modules private to the li= brary?


Thanks,

Hans Ole Rafaelsen
--0016e6d7df9fdd4a540487168979--