[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: |
Mon, 13 Oct 2008 07:15:32 +0200 |
On Sun, Oct 12, 2008 at 10:53 PM, felix winkelmann <address@hidden> wrote:
>
> "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.
Er, sorry about this nonsense. Just compiling your module as a unit
will register the module-info at runtime. "import" only loads a file
dynamically, if no module-registration has been done yet, and if
a <module>.import.[so|scm] exists. By compiling your module normally
(that is, without -emit-import-library), the module will be properly
registered and available. Eval still has to do the import, though,
but that should be acceptable.
cheers,
felix
- [Chicken-users] let-location & modules, (continued)
- [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, 2008/10/12
- [Chicken-users] Re: how to pass a certain environment to "eval",
felix winkelmann <=
- [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