From: Francois Rouaix <rouaix@ephemere.inria.fr>
To: "Mark C. Chu-Carroll" <carroll@louie.udel.edu>
Cc: caml-list@pauillac.inria.fr
Subject: Re: Dynamic linking in CSL?
Date: Thu, 28 Dec 1995 16:08:31 +0100 [thread overview]
Message-ID: <199512281508.KAA10817@ephemere.inria.fr> (raw)
In-Reply-To: Your message of "Fri, 22 Dec 1995 14:09:29 EST." <9512221909.aa01551@auriga.cis.udel.edu>
> Is it possible, in CSL, to dynamically load and link a CSL module
> which matches a static signature?
Dynamic linking is available for CSL (bytecode compiler only !)
as a library, in csl/otherlibs/dynlink.
Type safety is handled exactly as for static linking, except that you
can restrict arbitrarily the modules "exported" to dynamically linked
bytecode.
I have used this feature extensively in my MMM browser, written in CSL with
CamlTk4.
The difficulty is to invoke code from dynamically loaded modules. I believe
the easiest way is to provide "registration functions" that the extension
will call during loading.
E.G. in MMM
let _ = Applets.register the_function "some name"
and other similar "hooks" mechanisms.
--
Francois.Rouaix@inria.fr Projet Cristal - INRIA Rocquencourt
WWW Home Page: http://pauillac.inria.fr/~rouaix/
next prev parent reply other threads:[~1996-01-04 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-12-22 19:09 Mark C. Chu-Carroll
1995-12-28 15:08 ` Francois Rouaix [this message]
1995-12-29 14:06 ` Mark C. Chu-Carroll
1995-12-30 10:45 ` Francois Rouaix
1995-12-28 16:13 ` 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=199512281508.KAA10817@ephemere.inria.fr \
--to=rouaix@ephemere.inria.fr \
--cc=Francois.Rouaix@inria.fr \
--cc=caml-list@pauillac.inria.fr \
--cc=carroll@louie.udel.edu \
/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