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 (require-extension srfi-1) it will compile without warning or error. But if I execute the file or load it in csi, it says:

#;1> ,l test-chicken.scm
; loading test-chicken.scm ...
; loading /usr/local/lib/chicken/5/scheme.import.so ...
; loading /usr/local/lib/chicken/5/srfi-1.import.so ...

Error: unbound variable: fold

Is it intended? And why. (I can not check the wiki, the server is down (or unreachable for me))





_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to