Re: ideal way to load modules / set up evaluation environments at runtime.
Roderic Morris <[email protected]> Tue, 23 Oct 2012 00:23:56 -0400
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
Ah, cool! Thanks for the ref. Unfortunately, it seems that library doesn't work for the same reason the code I have no doesn't: the config-package function from the package-commands-internal-interface module is a "user-context-accessor", and it seems user-context doesn't exist outside of the command processor. Calling load-config-file from that library gives the following error:
error: unhandled upcall [propogate-upcall]
#{upcall-token user-session}
I'm not sure what the right way to deal with this is. Is there a canonical config-package outside of the command processor?
-Roderic
On Monday, October 22, 2012 at 2:33 PM, Michael Sperber wrote:
>
> Roderic Morris <[email protected] (mailto:[email protected])> writes:
>
> > Hey guys, I'm trying to load module definitions, and set up evaluation environments outside of the context of the command processor. The apis to do that seem to be lightly documented if at all though. I was wondering if any of you had some insight into the best way to do that.
> >
> > For instance, I'd like to :
> > - load a set of files containing module definitions
> > - create a new package with a subset of those modules opened, as well as standard modules included with scheme48
> > - evaluate code in that package
> >
>
>
> Sunterlib has stuff in s48/module-system that does this. Should still work.
>
> --
> Regards,
> Mike
>
>
>