This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: ice-9 module streams
- To: Olivier Buechel <Olivier dot Buechel at unifr dot ch>
- Subject: Re: ice-9 module streams
- From: Michael Livshin <mlivshin at bigfoot dot com>
- Date: 20 Dec 1999 15:04:54 +0200
- Cc: guile at sourceware dot cygnus dot com
- Organization: who? me?
- References: <14430.10147.868419.790194@unifr.ch>
[ in the future, please mail bug reports to <bug-guile@gnu.org> ]
Olivier Buechel <Olivier.Buechel@unifr.ch> writes:
> 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)
it is a Guile bug, which was fixed some time ago.
if you have access to anon CVS, do a CVS checkout and enjoy (well, try
to enjoy, you might have build problems if you are not on Linux).
> 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?
it's hard to say whether you are *completely* wrong, but you are wrong
when you say that make-stream *has* to be syntax. it needn't.
> thanx for any help
>
> olivier
welcome,
--mike
--
I'm on a seafood diet -- I see food and I eat it. -- anonymous