On Sun, Jun 3, 2012 at 5:31 PM, Peter Danenberg <[email protected]> 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

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to