From: "Ashish Agarwal" <agarwal1975@gmail.com>
To: "Andre Nathan" <andre@digirati.com.br>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Another question about modules
Date: Tue, 15 Jul 2008 20:18:23 -0400 [thread overview]
Message-ID: <d8be5ae20807151718l56ed70f0s7005801a19ccdb2a@mail.gmail.com> (raw)
In-Reply-To: <1216162299.5294.22.camel@homesick>
[-- Attachment #1: Type: text/plain, Size: 948 bytes --]
Firstly, you have a circular dependency. How are you compiling? That should
be the first error you get.
On Tue, Jul 15, 2008 at 6:51 PM, Andre Nathan <andre@digirati.com.br> wrote:
> 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
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 1845 bytes --]
next prev parent reply other threads:[~2008-07-16 0:18 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 ` [Caml-list] " Andre Nathan
2008-07-16 0:18 ` Ashish Agarwal [this message]
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=d8be5ae20807151718l56ed70f0s7005801a19ccdb2a@mail.gmail.com \
--to=agarwal1975@gmail.com \
--cc=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