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
Labeled arguments and polymorphic return types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-13 (15:54)
From: Andre Nathan <andre@d...>
Subject: Re: [Caml-list] Labeled arguments and polymorphic return types
On Mon, 2007-08-13 at 17:51 +0900, Jacques Garrigue wrote:
> Now, this explains the above warning: since there is no unlabelled
> parameter, but the return type is polymorphic, your unlabelled
> argument will be simply discarded, which is probably not what you
> wanted. The compiler is kind enough to inform you.

Thanks! Your explanation makes it very clear.