caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Dynamic loading of bytecode
@ 2006-08-14 15:21 Tom
  2006-08-14 15:42 ` [Caml-list] " David MENTRE
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom @ 2006-08-14 15:21 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-18  1:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-14 15:21 Dynamic loading of bytecode Tom
2006-08-14 15:42 ` [Caml-list] " David MENTRE
2006-08-17 11:48 ` Xavier Leroy
2006-08-18  1:15 ` Pietro Abate

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).