[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: how to pass a certain environment to "eval"
From: |
felix winkelmann |
Subject: |
[Chicken-users] Re: how to pass a certain environment to "eval" |
Date: |
Sun, 12 Oct 2008 22:53:58 +0200 |
On Fri, Oct 10, 2008 at 10:02 PM, Jörg F. Wittenberger
<address@hidden> wrote:
>
> I need "eval" to see my imported modules from top level. Right now -
> and with the srfi-35.scm from my last posting - condition-message? (for
> instance) is unbound in eval. "import" will try somewhere to find a .so
> which I could use, but don not really want that for some policy reasons.
"import" will try to find an import library. If you compile your modules
with "-emit-import-library MODULE", then a "MODULE.import.scm"
will be generated that you can compile to a .so and which can then
be accessed via "import". Getting rid of this run-time dependency
would mean to statically link the import lib. An interesting option, that
I'll investigate.
>
> So how do I derive a new "eval", which evaluates in the environment I
> created using a mixture of "import" and "uses"?
Currently there is no clean way, but see the hack I talked about in the
previous mail. But I would not try to simply overwrite toplevel bindings
like "condition?". You'll confuse library code.
cheers,
felix
- Re: [Chicken-users] -check-imports, (continued)
- Re: [Chicken-users] -check-imports, felix winkelmann, 2008/10/02
- [Chicken-users] let-location & modules, F. Wittenberger, 2008/10/07
- [Chicken-users] Re: let-location & modules, felix winkelmann, 2008/10/08
- [Chicken-users] Re: let-location & modules, F. Wittenberger, 2008/10/08
- [Chicken-users] Re: let-location & modules, felix winkelmann, 2008/10/09
- [Chicken-users] Re: let-location & modules, F. Wittenberger, 2008/10/09
- [Chicken-users] Re: let-location & modules - modules for srfi-34&35 - 2 questions, F. Wittenberger, 2008/10/10
- [Chicken-users] how to pass a certain environment to "eval", F. Wittenberger, 2008/10/10
- [Chicken-users] Re: how to pass a certain environment to "eval",
felix winkelmann <=
- [Chicken-users] Re: how to pass a certain environment to "eval", felix winkelmann, 2008/10/13
- [Chicken-users] module for srfi-35, F. Wittenberger, 2008/10/10
- [Chicken-users] Re: module for srfi-35, felix winkelmann, 2008/10/12
- [Chicken-users] Re: module for srfi-35, F. Wittenberger, 2008/10/13
- [Chicken-users] Re: module for srfi-35, felix winkelmann, 2008/10/14
- [Chicken-users] Re: module for srfi-35, F. Wittenberger, 2008/10/14
- [Chicken-users] Re: module for srfi-35, felix winkelmann, 2008/10/14
- Re: [Chicken-users] Re: module for srfi-35, F. Wittenberger, 2008/10/14
- [Chicken-users] Re: let-location & modules - modules for srfi-34&35 - 2 questions, felix winkelmann, 2008/10/12