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
type inference errors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-09-07 (07:10)
From: skaller <skaller@u...>
Subject: type inference errors
I just got this:

Values do not match:
  val unpack :
    Flx_mtypes2.sym_state_t ->
    (string * int) list -> Flx_types.tbexpr_t -> Flx_types.tbexpr_t list
is not included in
  val unpack :
    Flx_mtypes2.sym_state_t ->
    Flx_types.bparameter_t list ->
    Flx_types.tbexpr_t -> Flx_types.tbexpr_t list

and it is clear to *me* that:

Values do not match:
    (string * int) 
is not included in

I wonder how hard it would be to add some more heuristics to
the Ocaml compiler to detect a case 'like this' (whatever that
actually means)?

Ocaml already does quite a good job of this in some cases.

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net