Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Guy.Cousineau@ens.fr
To: caml-list@pauillac.inria.fr
Cc: cousineau@dmi.ens.fr
Subject: CSL modules
Date: Fri, 1 Mar 96 16:24:32 +0100	[thread overview]
Message-ID: <9603011524.AA08384@aubepine.ens.fr> (raw)




My problem is the following:
I have a module A which defines a concrete type ta
and a variable xa of type ta.
I have a module B which defines a concrete type tb
and a variable xb  of type tb.

I would like to build a fonctor F such that  C=F(A,B)  "reexports"
the  types and variables of A and B but with tb now being an abstract type.
and ta remaining a concrete type .
Moreover,  I want  C.xa  to be a value of type C.ta and not a value of type A.ta
which would be easy. The reason for that is that I do not want
the users of my programs to see modules A and B but only module C.
In other words, I try to use CSL modules to perform what was
possible in Caml Light using the trick decribed in the section 7.3
of the manual  under the title "turning code into a library".

I was hoping to be able to do it more cleanly in CSL.
But this seems to be impossible or am I wrong?

--Guy 








             reply	other threads:[~1996-03-01 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-01 15:24 Guy.Cousineau [this message]
1996-03-04 14:05 ` Xavier Leroy
1996-03-05  9:03   ` Wolfgang Lux
1996-03-06  9:28     ` Xavier Leroy
1996-03-05  9:55   ` Christophe Raffalli

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=9603011524.AA08384@aubepine.ens.fr \
    --to=guy.cousineau@ens.fr \
    --cc=caml-list@pauillac.inria.fr \
    --cc=cousineau@dmi.ens.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