English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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


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