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=NO_RELAYS autolearn=disabled version=3.1.3 Received: by yquem.inria.fr (Postfix, from userid 25991) id 6E281BC69; Tue, 21 Aug 2007 15:55:16 +0200 (CEST) Date: Tue, 21 Aug 2007 15:55:16 +0200 From: Daniel de Rauglaudre To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] "opening" record types Message-ID: <20070821135516.GA14937@yquem.inria.fr> References: <67ECB685-E69A-43CA-867D-30B879DB0510@research.att.com> <20070821.154236.68145619.Christophe.Troestler+ocaml@umh.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070821.154236.68145619.Christophe.Troestler+ocaml@umh.ac.be> User-Agent: Mutt/1.5.9i X-Spam: no; 0.00; rauglaudre:01 rauglaudre:01 foo:01 foo:01 caml-list:01 int:01 int:01 defined:02 module:03 module:03 daniel:04 daniel:04 types:05 inria:06 inria:06 Hi, > Is there any way around this? That is, is there any way to use the > field names of a record defined in another module without opening the > whole module or copying the whole definition of the record. Yes, instead of doing "open Foo", do: type t = Foo.t = {a: int; b:int} -- Daniel de Rauglaudre http://pauillac.inria.fr/~ddr/