From: mohamed iguernelala <mohamed.iguernelala@yahoo.fr>
To: caml-list@yquem.inria.fr
Subject: Multiple value declaration in .mli file
Date: Thu, 14 Aug 2008 16:25:54 +0000 (GMT) [thread overview]
Message-ID: <186665.42946.qm@web28108.mail.ukl.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Hello everyone,
We've just noticed that Ocaml permits to declare a value several times in an .mli file.
For example : We can write in a.mli
----
val f : int
val f : bool
----
and it compiles.
But if we define a value f in a.ml it compiles only when f's value is 'a.
From
external files, only the second declaration is visible. Then why Ocaml
allows multiple declaration for the same value in .mli files. Are there
any reason to allow it ?
------
David & Mohamed
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
[-- Attachment #2: Type: text/html, Size: 900 bytes --]
next reply other threads:[~2008-08-14 16:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 16:25 mohamed iguernelala [this message]
2008-08-15 1:23 ` [Caml-list] " blue storm
2008-08-15 17:07 Jérémie Lumbroso
2008-08-15 17:36 ` Jérémie Lumbroso
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=186665.42946.qm@web28108.mail.ukl.yahoo.com \
--to=mohamed.iguernelala@yahoo.fr \
--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