Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Rob Farley <rfarley@cs.monash.edu.au>
To: caml-list@inria.fr
Subject: CAML-Light: compiling toplevel__include
Date: Wed, 30 Oct 1996 16:38:41 +1100	[thread overview]
Message-ID: <3276E9E1.41C6@cs.monash.edu.au> (raw)


Hi,

I have a program, in which I make a note of the commands that are
called.  This allows me to save my work, and hopefully recall it
later.

Under the toplevel interface, I can use the 'include' command, which
I call in a function called 'restore_work', but when I try to compile
this program, it won't compile because there's no way of including
the toplevel library.

So I thought, well, since they're simply saved as strings, is there
a way of evaluating a string?  If, for example, I have a string called
"print_string (string_of_int !current_value);;", is there a way that
I can run this 'command'?  That would mean that I could read the file
into a string, and then simply execute it - thus solving my initial
problem - but I can't find anything in the documentation or FAQ about
how to do this...

Can any of you help me please?

Thanks in advance,


Rob Farley





                 reply	other threads:[~1996-10-30  9:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3276E9E1.41C6@cs.monash.edu.au \
    --to=rfarley@cs.monash.edu.au \
    --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