Version française
Home     About     Download     Resources     Contact us    
Browse thread
CAML-Light: compiling toplevel__include
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Rob Farley <rfarley@c...>
Subject: CAML-Light: compiling toplevel__include

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