Browse thread
[Caml-list] C++ STL and template features compared with OCaml parametric polymorphism and OO features
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-09-30 (09:19) |
From: | Radu Grigore <radugrigore@g...> |
Subject: | Re: [Caml-list] Factoring HOFs [was Re: C++ STL...] |
On Wed, 29 Sep 2004 17:49:17 +0100, Jon Harrop <jon@jdh30.plus.com> wrote: > Why does this end up with a single polymorphic type: Slightly related. I've found in the manual an example were a method is annotated with a type like: 'a. 'a -> int meaning "forall 'a the type is 'a -> int". Is there something similar for normal functions? I guess that such an annotation for the map parameter would solve Jon's problem. regards, radu ------------------- 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