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]

Re: ice-9 module streams



[ 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

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