[plt-scheme] Using symbols, introduced with namespace-attach- module, in an embedding application

From: Khorev Sergey (Khorev at SoftLab.RU)
Date: Tue Dec 16 04:12:01 EST 2003

Sorry, my second question was rather stupid.

>     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); 

Works great, module can be required even with prefix! :)
And to finish the thread...
Some experiments show that it works the same way as
    scheme_set_param(scheme_config, MZCONFIG_ENV, (Scheme_Object *)ns);
    scheme_eval_string("(namespace-attach-module basic 'mymod)", ns);
    scheme_set_param(scheme_config, MZCONFIG_ENV, (Scheme_Object *)basic);
    scheme_eval_string("(require mymod)", ns);
    scheme_eval_string("(prim1)", ns);

Am I right?

-- 
Sergey Khorev
http://iamphet.nm.ru
Famous actress bragging about her husband:
Look at him, isn't he beautiful I have kept him for seven years now

Dorothy Parker:
Don't Worry--he'll come back in style
 -- Dorothy Parker


Posted on the users mailing list.