[Ecls-list] Simple Hello word! function
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Sun Jul 4 13:43:59 UTC 2010
The problem with your code ...
cl_object ecl_eval(char* code) {
cl_object obj = c_string_to_object(code);
return si_safe_eval(3, obj, Cnil, g_evalErrorSymbol);
}
is that it relies on c_string_to_object() which will only read the FIRST
object it finds in the string, ignoring the remaining part of the string.
One quick hack would be to surround the string with parenthesis and the
evaluating the forms in the resulting list, one after another.
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100704/13391798/attachment.html>
More information about the ecl-devel
mailing list