caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Marshal and Polymorphism
@ 2005-08-04 18:23 Jonathan Bryant
  2005-08-04 20:06 ` [Caml-list] " Stephane Glondu
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Bryant @ 2005-08-04 18:23 UTC (permalink / raw)
  To: caml-list

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                    |
*=========================*


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-04 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04 18:23 Marshal and Polymorphism Jonathan Bryant
2005-08-04 20:06 ` [Caml-list] " Stephane Glondu
2005-08-04 20:39   ` Jonathan Bryant
2005-08-04 21:57     ` Stephane Glondu
2005-08-04 23:17     ` skaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).