caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Sébastien Hinderer" <Sebastien.Hinderer@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] How to include files dynamically
Date: Tue, 7 Jun 2016 14:48:53 +0200	[thread overview]
Message-ID: <20160607124853.GA2469@pl-59055.rocqadm.inria.fr> (raw)
In-Reply-To: <5756C0C2.8010201@femto-st.fr>

Nicolas Ratier (2016/06/07 14:40 +0200):
> Hello,
> 
> Is there a way to include files dynamically ?
> a kind of :
> 
> let aaa = "myfile.ml";;
> #use aaa;;
> 
> Thanks,

Have you looked at the dynlink module?

As far as I know it can load only object files so you would have to
compile your .ml file before. Not sure there is a better alternative.

Sébastien.

  reply	other threads:[~2016-06-07 12:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-07  2:59 [Caml-list] OASIS question: how does one set variables ? Chet Murthy
2016-06-07 12:40 ` [Caml-list] How to include files dynamically Nicolas Ratier
2016-06-07 12:48   ` Sébastien Hinderer [this message]
2016-06-08  4:16     ` Mark Bradley

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=20160607124853.GA2469@pl-59055.rocqadm.inria.fr \
    --to=sebastien.hinderer@inria.fr \
    --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;
as well as URLs for NNTP newsgroup(s).