[plt-scheme] Using symbols, introduced with namespace-attach- module, in an embedding application
At Mon, 15 Dec 2003 18:35:17 +0300, Khorev Sergey wrote:
> > I'll work on the docs. Meanwhile, you might avoid problems by
> > explicitly setting the namespace to the one where you want to evaluate
> > expressions.
>
> How can I achive this?
> scheme_set_param(scheme_config, MZCONFIG_ENV, (Scheme_Object *)ns);
> scheme_eval_string("(namespace-attach-module basic 'mymod)", ns);
> scheme_eval_string("(prim1)", ns);
>
> Still fails...
"attach" doesn't imply "require", so add one step:
scheme_set_param(scheme_config, MZCONFIG_ENV, (Scheme_Object *)ns);
scheme_eval_string("(namespace-attach-module basic 'mymod)", ns);
scheme_eval_string("(require mymod)", ns);
scheme_eval_string("(prim1)", ns);
Matthew