Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

[ sisc-Bugs-1210879 ] LIST-REF does not raise error when index out of bound: msg#00005

Subject: [ sisc-Bugs-1210879 ] LIST-REF does not raise error when index out of bounds
Bugs item #1210879, was opened at 2005-05-29 13:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1210879&group_id=23735

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Wilcox (andrewwilcox)
Assigned to: Nobody/Anonymous (nobody)
Summary: LIST-REF does not raise error when index out of bounds

Initial Comment:
R5RS says for (list-ref list k) "It is an error if list
has fewer than k elements."

SISC (1.9.7) - main
#;> (list-ref '(a b c) 9)
()

SISC (1.11.0-alpha) - main
#;> (list-ref '(a b c) 9)
()


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1210879&group_id=23735


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005


<Prev in Thread] Current Thread [Next in Thread>