[plt-scheme] scheme_primitive_module
At Tue, 3 Jan 2006 06:44:11 -0600, wayne at taxupdate.com wrote:
> char buf[] = "(module test mzscheme "
> "(require foreign)"
> "(func)"
> ")"
> "(require test)";
> scheme_eval_string(buf, env);
scheme_eval_string() reads a single S-expression, and ignores the rest
of the string. (I've adjusted the docs to clarify this.)
So, you could change your example to
char buf[] = "(begin (module test mzscheme "
"(require foreign)"
"(func)"
")"
"(require test))";
and then it should work as you expect.
Matthew