From: Juan Jose Garcia Ripoll <jjgarcia@ind-cr.uclm.es>
To: Caml list <caml-list@inria.fr>
Subject: Some questions about signatures
Date: Wed, 14 Apr 1999 09:36:33 +0200 [thread overview]
Message-ID: <37144581.87032AC2@ind-cr.uclm.es> (raw)
Hi,
I must admit that I'm more fluent in SML than in OCaml and that's the reason
for these questions.
1) Are OCaml's signatures opaque? I mean if they do hide the real
implementation of data types and of non-declared values to the public, much
like SML's :>
2) How can I extend a signature with new values and types? I've been using the
'include' directive, but I did not find it in the manual. Is this supposed to
work or is it just a Caml-Light reminiscent.
3) What is the simplest way to build toplevel modules using functors? In SML
everything on every file is bound to the toplevel environment and one can do
just 'structure NewStruct = AFunctor(structure A = AParameter)' to get a brand
new module. But in OCaml toplevel modules are defined in term of two files
(mli/ml) so what are my options if I dont want to add a spurious path name?
Regards
Juanjo
--
Juan Jose Garcia Ripoll www: http://www.arrakis.es/~worm
Dpto. de Matematicas job: jjgarcia@ind-cr.uclm.es
E.T.S.I. Industriales home: worm@arrakis.es
Univ. de Castilla-La Mancha, Ciudad Real E-13071 (Spain)
next reply other threads:[~1999-04-15 15:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-14 7:36 Juan Jose Garcia Ripoll [this message]
1999-04-27 19:47 ` Xavier Leroy
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=37144581.87032AC2@ind-cr.uclm.es \
--to=jjgarcia@ind-cr.uclm.es \
--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