caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] how to write interface file for these two files?
@ 2004-06-27 23:01 Gu Nu
  2004-06-28  0:44 ` Christophe TROESTLER
  0 siblings, 1 reply; 2+ messages in thread
From: Gu Nu @ 2004-06-27 23:01 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-28  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-27 23:01 [Caml-list] how to write interface file for these two files? Gu Nu
2004-06-28  0:44 ` Christophe TROESTLER

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).