caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: vsl@ontil.ihep.su
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Strange error message
Date: Thu, 16 Jan 2003 16:48:16 +0900	[thread overview]
Message-ID: <20030116164816M.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <Pine.LNX.4.52L.0301152247380.29295@ontil.ihep.su>

From: Vitaly Lugovsky <vsl@ontil.ihep.su>
>  I just got a strange error message, never seen before.
> Ocaml 3.06.
> 
> The implementation lisp.ml does not match the interface lisp.cmi:
> Values do not match:
>   val execute :
>     int * (string, '_a Lispt.ctv) Hashtbl.t ->
>     '_a Lispt.llist list -> int * (string, '_a Lispt.ctv) Hashtbl.t
> is not included in
>   val execute :
>     int * (string, 'a Lispt.ctv) Hashtbl.t ->
>     'a Lispt.llist list -> int * (string, 'a Lispt.ctv) Hashtbl.t

That's just the nth variant of the value polymorphism problem.  You
should probably eta-expand the definition of execute, because
currently it has a monorphic type (as shown by the '_a), while the
interface requires it to be polymorphic.

---------------------------------------------------------------------------
Jacques Garrigue      Kyoto University     garrigue at kurims.kyoto-u.ac.jp
		<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>
-------------------
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


  reply	other threads:[~2003-01-16  7:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-15 19:49 Vitaly Lugovsky
2003-01-16  7:48 ` Jacques Garrigue [this message]
2003-01-19 14:52   ` Pierre Weis
2003-01-20 14:17     ` Vitaly Lugovsky
2003-01-20 16:06       ` Pierre Weis
2003-01-21 23:51       ` Jacques Garrigue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030116164816M.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=vsl@ontil.ihep.su \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).