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] Multiparameter functors?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-12-22 (03:12)
From: Brian Hurt <bhurt@s...>
Subject: [Caml-list] Multiparameter functors?

Is it possible to do multi-parameter functors?  What I want to be able to 
so is something like:

module Make(Key: Map.OrderedType, Pri: Map.OrderedType) = struct
	type key = Key.t;;
	type pri = Pri.t;;

Am I being stupid and just missing something obvious, or is there some 
subtle reason why I shouldn't be doing this?

"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it."
                                - Gene Spafford 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: