[Ecls-list] Simple example needed for embedding in non-c like environment ...
Marten Feldtmann
itlists at schrievkrom.de
Fri Aug 5 17:18:29 UTC 2011
Ah, I understand ... I had to code:
result = si_safe_eval(
3,
si_string_to_object(
1,
ecl_make_simple_base_string("(+ 1 1)",-1)),
Cnil,
OBJNULL);
and now I get "2" ..... wow !
Thanks,
Marten Feldtmann
Am 05.08.2011 14:10, schrieb Juan Jose Garcia-Ripoll:
> Hi Marten,
>
> unfortunately I know nothing of Smalltalk, but maybe I can help you with
> the C mistakes. Compare this
>
> On Fri, Aug 5, 2011 at 1:43 PM, Marten Feldtmann <itlists at schrievkrom.de
> <mailto:itlists at schrievkrom.de>> wrote:
>
> form = c_string_to_object("(+ 1 1)");
> result = si_safe_eval(3, form, Cnil, g_eclEvalErrorSymbol);
>
>
> and this
>
> result = si_safe_eval(3, ecl_make_simple_base_string("(+ 1 1)",-1),
> Cnil, OBJNULL);
>
>
More information about the ecl-devel
mailing list