[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] What happened to -strict-letrecs?
From: |
Kon Lovett |
Subject: |
Re: [Chicken-hackers] What happened to -strict-letrecs? |
Date: |
Sat, 9 Feb 2008 10:49:32 -0800 |
On Feb 9, 2008, at 10:18 AM, John Cowan wrote:
Alex Shinn scripsit:
The current letrec behavior is a perfectly compliant
interpretation of R5RS. There is another compliant
interpretation which would signal an error in some cases.
Here are the relevant bits of code from SISC's r5rs_pitfall.scm:
<snip>
r5rs_pitfall is in the repo but not part of runtests.
cd ${directory-path-to}/chicken-eggs/chicken/trunk/tests
../csi -R syntax-case -script r5rs_pitfalls.scm
Failure: 1.1, expected '0', got '1'.
Failure: 1.2, expected '#t', got '#f'.
Passed: 1.3
Passed: 2.1
Passed: 3.1
Passed: 3.2
Passed: 3.3
Passed: 3.4
Passed: 4.1
Passed: 4.2
Passed: 4.3
Passed: 5.1
Passed: 5.2
Passed: 5.3
Passed: 6.1
Passed: 7.1
Passed: 7.2
Passed: 7.3
Passed: 7.4
Passed: 8.1
Passed: 8.2
Failure: 8.3, expected '1', got '2'.
Map is call/cc safe, but probably not tail recursive or inefficient.
Best Wishes,
Kon