[Ecls-list] Embedding question

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Thu May 22 14:34:11 UTC 2008


On Thu, May 22, 2008 at 4:19 PM, KONOVALOV, Vadim (Vadim)** CTR **
<vkonovalov at alcatel-lucent.com> wrote:
> Hi,
>
> I'm embedding ECL, and so far so good.
>
> I succesfully can "eval" strings:
>        cl_object def, res;
>        char *argv1[] = {""};
>        cl_boot(0,argv1);
>        def = c_string_to_object("(format nil \"~A\" (expt 2 1000))");
>        res = cl_eval(def);
>
> The problem becomes when I eval undefined function:
>
>        def = c_string_to_object("(frustrated)");
>        res = cl_eval(def);

See 2.4 in http://ecls.wiki.sourceforge.net/FAQ
si_safe_eval() will help you in capturing errors.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list