I get an error in 5.0.2, rather than 0.<br><br>--Mark<br><br>P.S. I was surprised to see that list-ref in #lang lazy takes the args in opposite order than in #lang racket (which takes the list first).<br><br><div class="gmail_quote">
On Tue, Jan 25, 2011 at 11:27 PM, John Clements <span dir="ltr"><<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I would expect this program to signal an error:<br>
<br>
#lang lazy<br>
<br>
(define zeros (cons 0 zeros))<br>
<br>
(define should-be-error (list-ref (take 15 zeros) 1324))<br>
<br>
<br>
... but instead should-be-error is bound to zero. How can I take the 1000th element of a list with only 15 elements? I'm tempted to make snide comments about laziness, but I'm sure it'll backfire when it turns out that somehow that's the right answer after all.<br>
<br>
Bug report?<br>
<font color="#888888"><br>
John<br>
<br>
</font><br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br></blockquote></div><br>