From: Gu Nu <gnu04@yahoo.com>
To: caml-list@inria.fr
Subject: [Caml-list] how to write interface file for these two files?
Date: Sun, 27 Jun 2004 16:01:26 -0700 (PDT) [thread overview]
Message-ID: <20040627230126.86986.qmail@web60905.mail.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
Hi, all
I have a question on writing the interface file.
A.ml
type t = { x: int; y: int};;
let f c = c.x + c.y;;
B.ml
let val = {A.x =1 ; A.y = 2};;
A.f val;;
open A;;
f val;;
How to write a interface file for B.ml,
in which no functions are explicitly defined?
Thanks a lot!
Andy
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
[-- Attachment #2: Type: text/html, Size: 785 bytes --]
next reply other threads:[~2004-06-27 23:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-27 23:01 Gu Nu [this message]
2004-06-28 0:44 ` Christophe TROESTLER
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=20040627230126.86986.qmail@web60905.mail.yahoo.com \
--to=gnu04@yahoo.com \
--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