[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] load files from CHICKEN_INCLUDE_PATH on requir
From: |
Evan Hanson |
Subject: |
[Chicken-hackers] [PATCH] load files from CHICKEN_INCLUDE_PATH on require |
Date: |
Sun, 26 May 2013 22:21:22 -0700 |
User-agent: |
OpenSMTPD enqueuer (Demoosh) |
The documentation for `require` indicates that "the current include
path, which defaults to the pathnames given in CHICKEN_INCLUDE_PATH"
will be searched for files to load. However, this isn't currently the
case:
$ ls foo
bar.scm
$ CHICKEN_INCLUDE_PATH=./foo csi
...
#;> (require 'bar)
Error: (require) cannot load extension: bar
This patch adjusts this behavior so that `##sys#include-pathnames` are
searched for files to load on require. I'm not sure if this is the
intended behavior, or if things are already as they should be and the
documentation is wrong, but it seems correct to me.
In any case, I believe this change only affects interpreted code since
AFAICS there's no way to add to the included pathnames in compiled code.
Evan
0001-load-files-from-CHICKEN_INCLUDE_PATH-on-require.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-hackers] [PATCH] load files from CHICKEN_INCLUDE_PATH on require,
Evan Hanson <=