[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]