From: Tom <tom.primozic@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Dynamic loading of bytecode
Date: Mon, 14 Aug 2006 17:21:25 +0200 [thread overview]
Message-ID: <c1490a380608140821q497970cfr6a8f091ec73b19ef@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
There is a really stupid question I want to ask, I have been searching
online for some days now and couldn't get it answered...
How can you load the whole module hiearchy (many modules, dependent on one
another) with a single command in toploop?
Say I have files a.ml:
let f x = x - 1
and b.ml:
let g x y = x + f y - f x
and I compile them into bytecode
ocamlc -c a.ml
ocamlc -c b.ml
and then I want to be able to load them into the toploop so that I could
access both modules A and B:
# let simplify x = B.g x - A.f x
How do I do that?
[-- Attachment #2: Type: text/html, Size: 764 bytes --]
next reply other threads:[~2006-08-14 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-14 15:21 Tom [this message]
2006-08-14 15:42 ` [Caml-list] " David MENTRE
2006-08-17 11:48 ` Xavier Leroy
2006-08-18 1:15 ` Pietro Abate
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=c1490a380608140821q497970cfr6a8f091ec73b19ef@mail.gmail.com \
--to=tom.primozic@gmail.com \
--cc=caml-list@yquem.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