[Ecls-list] A cl_funcall and cl_safe_eval question.

Juan Jose Garcia Ripoll jlr at mpq.mpg.de
Sun Aug 8 02:48:03 UTC 2004


Brian Algeri wrote:

> Just a small question that I have?
> form = c_string_to_object(str5);
> recset = cl_safe_eval(form,Cnil,Cnil);
> The above code snip works:
> str5 evaluates to "(cla:get-rec 1 cla::*person-tbl*)"
> with 1 being whatever the record key is.
> recset now contains a list of the record.
> This does not work:
> form = c_string_to_object("cla:get-rec");
> recset = cl_funcall(3, form, MAKE_FIXNUM(rec),
>                    c_string_to_object("cla::*person-tbl*");

you probably want to make 
cl_symbol_value(c_string_to_object("cla::*person-tbl*"))
Regards,

Juanjo

-- 
Max-Planck-Institut fuer Quantenoptik	+49/(0)89/32905-345
Hans-Kopfermann-Str. 1, D-85748		www.mpq.mpg.de/Theorygroup/CIRAC/
Garching b. Muenchen, Germany		Juan.Ripoll at mpq.mpg.de






More information about the ecl-devel mailing list