Hi,
I have some problems with the module system. Here is the code for
test-chicken.scm:
(require-extension srfi-1)
(module test (rev) (import scheme) (import srfi-1)
(define (rev ls) (fold cons '() ls))
)
(import test)
(display (rev (list 1 2 3 4 5))) (newline)
If I omit
Hi,
while I'm still not sure that I found the issue, at least I on spotted
something, which is definitely wrong in chicken: mutex-unlock!
Index: srfi-18.scm
===
--- srfi-18.scm
+++ srfi-18.scm
@@ -368,11 +368,12 @@
(lambda
Rank newbie here, so bear with me. I know these examples are somewhat
contrived. I'm just trying to explore what I can (and can't do). I have a
couple of questions regarding macro's inside a module.
1) how to define something so that its available within either a macro or a
function
Hello,
you can do it the following way by generating the import module for test.scm:
nico...@dynamo:~/tmp$ cat test.scm
(module test (rev) (import scheme) (import srfi-1)
(require-extension srfi-1)
(define (rev ls) (fold cons '() ls))
)
nico...@dynamo:~/tmp$ cat toto.scm
(require-extension