This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ice-9 module streams


This may be a general scheme question, but it should not.
I tried to use the stream package in ice-9.
This is what i get:
bash$ guile
guile> (version)
"1.3.4"
guile> (use-modules (ice-9 streams))
guile> (define a (make-stream (lambda (x) (* x x)) 2))
/home/buechel/download/appli/guile-1.3.4/ice-9/streams.scm:89:3: In procedure delay in expression (delay (let # #)):
/home/buechel/download/appli/guile-1.3.4/ice-9/streams.scm:89:3: missing or extra expression
ABORT: (misc-error)

at least this line should work as is:
guile> (list->stream '(1 2 3))
/home/buechel/download/appli/guile-1.3.4/ice-9/streams.scm:89:3: In procedure delay in expression (delay (let # #)):
/home/buechel/download/appli/guile-1.3.4/ice-9/streams.scm:89:3: missing or extra expression
ABORT: (misc-error)

Has anybody already used the streams-module? It seems to me, that
make-stream has to be a special-form, as in sicp, which is not the case 
with guile ice-9 streams-module.
Or am I completly wrong?
 
thanx for any help

olivier

email: olivier.buechel@unifr.ch

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]