This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
ice-9 module streams
- To: guile at sourceware dot cygnus dot com
- Subject: ice-9 module streams
- From: Olivier Buechel <Olivier dot Buechel at unifr dot ch>
- Date: Mon, 20 Dec 1999 13:57:07 +0100 (MET)
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