Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] polymorphic variant question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-21 (06:45)
From: Francois Pottier <Francois.Pottier@i...>
Subject: Re: [Caml-list] polymorphic variant question

> I have a number of modules A, B, C that share a single data structure
> between them, all under the control of a central module.  Each wants to
> store different kinds of data in the data structure.

Is it important that the modules share a common data structure? Given that
the data items stored by each module are of a different type, it sounds
like it would be reasonable to have one data structure per module. So,
the central module (which provides the data structure) could be written
as a functor and instantiated once per client module.

François Pottier
Bug reports:  FAQ:
To unsubscribe, mail  Archives: