From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Type error
Date: Sat, 2 Apr 2005 02:29:33 +0100 [thread overview]
Message-ID: <200504020229.33295.jon@ffconsultancy.com> (raw)
I've got a type error:
This type of expression, <height:int; width:int; _..> -> unit, contains type
variables that cannot be generalized
which appears with the form:
let f =
let t = ref None in
fun data -> ...
but not in the unnested form:
let t = ref None
let f =
fun data -> ...
Is that supposed to happen? I thought those two forms were exactly equivalent
(except for polluting the outer namespace in the latter case).
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists
next reply other threads:[~2005-04-02 1:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-02 1:29 Jon Harrop [this message]
2005-04-02 7:50 ` [Caml-list] " Jacques Garrigue
2006-10-15 3:29 Denis Bueno
2008-03-23 22:01 type error Jacques Le Normand
2008-03-23 22:19 ` [Caml-list] " Martin Jambon
2008-03-24 8:53 ` Remi Vanicat
2008-04-01 2:27 Jacques Le Normand
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=200504020229.33295.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.inria.fr \
/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