From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA08415; Wed, 20 Nov 2002 07:16:11 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA08274 for ; Wed, 20 Nov 2002 07:16:10 +0100 (MET) Received: from students.mimuw.edu.pl (zodiac.mimuw.edu.pl [193.0.96.128]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gAK6G9X11731 for ; Wed, 20 Nov 2002 07:16:09 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by students.mimuw.edu.pl (Postfix) with ESMTP id 7C41D17A4B for ; Wed, 20 Nov 2002 07:16:08 +0100 (CET) Received: by students.mimuw.edu.pl (Postfix, from userid 2738) id 00C7617A24; Wed, 20 Nov 2002 07:16:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by students.mimuw.edu.pl (Postfix) with ESMTP id EF3D53FB6 for ; Wed, 20 Nov 2002 07:16:07 +0100 (CET) Date: Wed, 20 Nov 2002 07:16:07 +0100 (CET) From: Lukasz Lew X-X-Sender: ll189417@zodiac.mimuw.edu.pl To: caml-list@inria.fr Subject: [Caml-list] Is it possible to implement this? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Razor-id: e38c1747ea234d561bca514031294b546b9356fb Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Let's suppose wy have module with such interface module X = type t (*big data structure*) add : string -> t delete : t -> () And in the other module i keep X.t list, and i want to keep with each of them additional data of unknown type [at time of X compilation] One solution is to have a hash from t to additional data in external module, but this would be slow, because of size of t. Other is to keep with every t int identifier as small as possible, to keep additional data in array, but this solution isn't very good. Any ideas? Lukasz Lew ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners