caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "EL CHAAR Rabih   SGAM/AI/SAM" <RABIH.ELCHAAR@sgam.com>
To: "Sam Steingold" <sds@gnu.org>, <caml-list@inria.fr>
Subject: RE: [Caml-list] stand-alone top-level
Date: Tue, 17 Apr 2007 10:03:09 +0200	[thread overview]
Message-ID: <7625D6A1880B4C4DA11D2EBB8B43D2B9017473D9@FRDEF-EXMB03.europe.am.socgen> (raw)

All toplevels need to see the interfaces of the modules you are using (.cmi).

By default, it looks in the %OCAMLLIB% directory.
You can also use the -I directive to add a path for the search of cma,cmi

custom -I c:/myinterfaces

Hope this helps.

Sincerely,
Rabih


-----Message d'origine-----
De : caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] De la part de Sam Steingold
Envoyé : lundi 16 avril 2007 19:52
À : caml-list@inria.fr
Objet : [Caml-list] stand-alone top-level

How can I create a stand-alone top-level (REPL) executable?

My workstation is not powerful enough to run some things, so I want to 
create an interactive top-level (REPL) executable, copy it to a 
different machine (with, say, more RAM) and talk to the REPL.
Alas, this does not work, because, even though my executable code gets 
linked in, it cannot be used without the mli files:
ocamlmktop foo.cma -o mycaml
mycaml now requires foo.mli to be present somewhere for Foo.bar() to be 
usable. this means that mycaml is not really stand-alone, I have to 
carry all the mli files with it.

this all basically means that I have to compile exe files (instead of an 
interactive REPL) to do my work on a different machine (i.e., 
effectively, I am using the C development model: edit/compile/link/run 
instead of the Lisp development model: edit/run).

so, is there a way around?
how do I create a completely stand-alone ocaml repl that contains my code?

thanks.

Sam.

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. 
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
Societe Generale Asset Management et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. 
  
Decouvrez l'offre et les services de Societe Generale Asset Management sur le site www.sgam.fr 
  
                                ******** 
  
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration. 
Neither Societe Generale Asset Management nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. 
 
Find out more about Societe Generale Asset Management's proposal on www.sgam.com


             reply	other threads:[~2007-04-17  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17  8:03 EL CHAAR Rabih   SGAM/AI/SAM [this message]
2007-04-17 13:54 ` Sam Steingold

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=7625D6A1880B4C4DA11D2EBB8B43D2B9017473D9@FRDEF-EXMB03.europe.am.socgen \
    --to=rabih.elchaar@sgam.com \
    --cc=caml-list@inria.fr \
    --cc=sds@gnu.org \
    /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).