|
From: | Jörg F . Wittenberger |
Subject: | Re: [Chicken-users] to "uses" or not to "uses" |
Date: | 25 Mar 2013 10:52:39 +0100 |
On Mar 25 2013, Peter Bex wrote:
On Mon, Mar 25, 2013 at 10:07:15AM +0100, Jörg F. Wittenberger wrote:What's more tricky is that bindings, e.g., make-hash-table resolve to unbond in the runtime initialization even though there is an (import srfi-69) in the module. I can "fix" this by giving a (uses srfi-69) before the module. But that's precisely what I feel it's wrong.import only loads the import library, it doesn't load the actual code. For that you need to use require-library, or you can change the import statement to be (require-extension srfi-69) or (use srfi-69), which both loads and imports.
These both don't cut it for me. I'm using rather often (import (only module ....) (except from sonthing)) Both use and require-extension seem to import all bindings. Also at the moment I can't really get the thing to use the statically bound .o files reliably. The stripped down test case picks it up. But in the full code, it fails with ##sys#require not finding the code. What to do?
Cheers, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |