From: Andre Nathan <andre@digirati.com.br>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Another question about modules
Date: Tue, 15 Jul 2008 19:51:39 -0300 [thread overview]
Message-ID: <1216162299.5294.22.camel@homesick> (raw)
In-Reply-To: <1216154495.5294.9.camel@homesick>
I think this is similar to this simpler problem:
a.ml:
type t = { id: int }
let f x = print_int x.id; B.f x
a.mli:
type t
val f : t -> unit
b.ml:
let f x = print_int 42
b.mli:
val f : A.t -> unit
Which results in "This expression has type t but is here used with type
A.t" in a.ml, even though t and A.t are the same type. Is there a
general solution for this kind of situation?
Thanks,
Andre
next prev parent reply other threads:[~2008-07-15 22:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 20:41 Andre Nathan
2008-07-15 22:51 ` Andre Nathan [this message]
2008-07-16 0:18 ` [Caml-list] " Ashish Agarwal
2008-07-16 0:44 ` Andre Nathan
2008-07-16 1:05 ` Ashish Agarwal
2008-07-16 14:05 ` Daniel Bünzli
2008-07-16 1:54 ` Martin Jambon
2008-07-16 14:15 ` Andre Nathan
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=1216162299.5294.22.camel@homesick \
--to=andre@digirati.com.br \
--cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).