caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Multiparameter functors?
@ 2003-12-22  0:30 Brian Hurt
  2003-12-22 10:17 ` Julien Signoles
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Brian Hurt @ 2003-12-22  0:30 UTC (permalink / raw)
  To: Ocaml Mailing List


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;;
	...
end;;

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 
Brian

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


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

end of thread, other threads:[~2003-12-23  1:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-22  0:30 [Caml-list] Multiparameter functors? Brian Hurt
2003-12-22 10:17 ` Julien Signoles
2003-12-23  1:16   ` Brian Hurt
2003-12-22 12:36 ` Julien Demouth
2003-12-22 23:04 ` Matt Gushee
2003-12-22 23:56   ` David Brown
2003-12-22 23:58   ` David Brown

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).