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] C++ STL and template features compared with OCaml parametric polymorphism and OO features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
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 <> 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.


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