jblazi <[EMAIL PROTECTED]> writes:

>   scm_eval_string((scm_unused_struct*)"(test_function 4)");

You can not just cast a char* to a SCM.  Where did you get that idea?
(Maybe there is some misleading stuff in the manual, that's why I
ask.)

You should either use scm_c_eval_string,

    scm_c_eval_string ("(test_function 4)");

wich can work directly with C strings, or use scm_str2string to
convert the C string into a Scheme string:

    scm_c_eval_string (scm_str2string ("(test_function 4)"));

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile

Reply via email to