chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] import and srfi-1


From: schugk
Subject: [Chicken-users] import and srfi-1
Date: Wed, 21 Jul 2010 15:28:18 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

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))







reply via email to

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