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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DF231BBD7 for ; Thu, 4 Aug 2005 20:22:19 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j74IMJMD023148 for ; Thu, 4 Aug 2005 20:22:19 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA25260 for ; Thu, 4 Aug 2005 20:22:18 +0200 (MET DST) Received: from mailx.valdosta.edu (mailx.valdosta.edu [168.18.130.251]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j74IMHnO023143 for ; Thu, 4 Aug 2005 20:22:18 +0200 Received: from starlight.valdosta.edu (starlight.valdosta.edu [168.18.148.146]) by mailx.valdosta.edu (8.13.4/8.13.4) with ESMTP id j74IMGVT022184 for ; Thu, 4 Aug 2005 14:22:17 -0400 (EDT) (envelope-from jtbryant@valdosta.edu) Subject: Marshal and Polymorphism From: Jonathan Bryant Reply-To: jtbryant@valdosta.edu To: caml-list@inria.fr Content-Type: text/plain Organization: Valdosta State University Information Technology (System Operations) Date: Thu, 04 Aug 2005 14:23:56 -0400 Message-Id: <1123179836.3276.76.camel@starlight.valdosta.edu> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-16) Content-Transfer-Encoding: 7bit X-PMX-Version: 5.0.2.153301, Antispam-Engine: 2.0.3.2, Antispam-Data: 2005.8.4.20 X-Miltered: at nez-perce with ID 42F25CDB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42F25CD9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; polymorphism:01 hashtable:01 ...:98 marshal:01 marshal:01 int:01 defined:01 somewhere:02 typo:03 string:03 string:03 module:03 module:03 redundant:05 anyway:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 I know the subjects of the questions I ask on this list must seem all over the map, but I'm working on a large project with many different parts. Anyway, on to my question :). I'm trying to write a disk bound hashtable. I'm doing this because I have to store somewhere between 1,000,000,000 - 2,000,000,000 (no, that is NOT a typo) words and their corresponding index numbers, as well as the documents they appeared in (20,000,000,000+) and frequency information. My question is this: If I make the module have type = ('a, 'b) t in the module definition, can I use (Marshal.from_string ... : 'a) and get whatever 'a was defined as in the definition. For example, if it was a (string * int) t, would the function return a string? Or would this be redundant (since Marshal.from_string already returns 'a)? -- *=========================* |Jonathan Bryant | |Valdosta State University| |Information Technology | |System Operations | |-------------------------| |jtbryant@valdosta.edu | |x6358 | *=========================*