C is a compiled langauge. This means you can't pass a line of C source to a
function and get the desired results. That is of course unless you built
your own C interpreter (probably not a good idea for the palm).
Instead what you could do is make some kind of simple scripting language and
read in a script and act on it. This is basically the same idea as the
first solution, but you don't need to support all the complexities of C.
I'm not sure what it is you want to execute though, so I can't help you
without more details.
If you're willing to write out opcodes, then you COULD just execute a
string....but I doubt this is what you had in mind :-)
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jon Baer
Sent: Thursday, April 27, 2000 4:54 PM
To: Palm Developer Forum
Subject: Palm/C/Eval()? question
Is there anyway to take a character array[] (String) in C(Palm) and
"execute" it? Something familiar to the eval() statement in
Ecmascript? Id like to do a simple alert from a piece of info received off
something downloaded from iNetLib.
- Jon
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html