caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Wolfgang Lux <lux@heidelbg.ibm.com>
To: Franck Delaplace <delapla@lami.univ-evry.fr>
Cc: caml-list@pauillac.inria.fr
Subject: Re: module aggregation
Date: Fri, 14 Jun 96 11:25:44 +0100	[thread overview]
Message-ID: <9606140925.AA42640@idse.heidelbg.ibm.com> (raw)
In-Reply-To: (Your message of Thu, 13 Jun 96 09:09:58 O.) <31BFBEC6.167EB0E7@lami.univ-evry.fr>


Franck Delaplace <delapla@lami.univ-evry.fr> writes:
> 
> I want to aggregate two modules in one in order
> to improve some standard modules or some module
> define by functors . How can I do this in Ocaml ? 
> 

This answer is very simple: You cannot.

The only way to achieve your goal would be to define a new module,
copy all values of the module M1 you want to preserve and then add or
change those values which you do not want to include from M1 or add to
M1.

> I have also the same problem for module defined by Functor
> I want to add some specific functions once the module is defined.
> 

There's no way to do that. You have to recompile the functor. (After
all we are not in Smalltalk here.)

Regards
Wolfgang

----
Wolfgang Lux
WZH Heidelberg, IBM Germany             Internet: lux@heidelbg.ibm.com
+49-6221-59-4546                        VNET:     LUX at HEIDELBG
+49-6221-59-3500 (fax)	                EARN:     LUX at DHDIBMIP





  reply	other threads:[~1996-06-14 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-13  7:09 Franck Delaplace
1996-06-14 10:25 ` Wolfgang Lux [this message]
1996-06-14 22:00   ` Bernd Grobauer

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=9606140925.AA42640@idse.heidelbg.ibm.com \
    --to=lux@heidelbg.ibm.com \
    --cc=caml-list@pauillac.inria.fr \
    --cc=delapla@lami.univ-evry.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;
as well as URLs for NNTP newsgroup(s).