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 <itli...@schrievkrom.de
> <mailto:itli...@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);
>
>

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to