chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API


From: Alex Shinn
Subject: Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API
Date: Sun, 3 Jun 2012 18:06:39 +0900

On Sun, Jun 3, 2012 at 5:31 PM, Peter Danenberg <address@hidden> wrote:
> Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion:
>> Now, if we have a whole program or library which consistently uses
>> lazy streams instead of lists, we can import srfi-41 renaming all
>> the stream-* bindings by removing the stream- prefix.
>
> Interesting idea; the attached program will, however, reliably cause
> Chicken to SIGSEGV.

You mis-matched your parens - it should be:

  (define (factorial n)
    (ref (scan * 1 (from 1)) n))
                                   ^^^

Presumably you compiled to get a segfault -
the interpreter gives an arity error.

-- 
Alex



reply via email to

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