Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-07-12
20:49 • Closed ticket [9933cc4d88]: lseq corner case plus 6 other changes artifact: b2d23a78e5 user: griffin
2023-07-05
09:58 • Ticket [9933cc4d88]: 3 changes artifact: 54888849c7 user: apnadkarni
2022-09-25
17:50 • Ticket [9933cc4d88]: 3 changes artifact: cc6293cf0d user: griffin
2022-09-21
13:59 • Ticket [9933cc4d88]: 3 changes artifact: 6d89189ebb user: griffin
07:48 • New ticket [9933cc4d88]. artifact: 292bf7c2ca user: jan.nijtmans

lseq corner case

Closed / Fixed9933cc4d88697f05976accebd31c1e3ba6efe9c6Created 4 years agoUpdated 3 years ago
Descriptionwiki2022-09-21 07:48:35
% lindex [lseq 10 100] 0
10
%  lindex [lseq 10 9223372036854775000] 0
%
%  llength [lseq 10 9223372036854775000]
-817

I would expect the first element to be extractable, no matter the length of the lseq.

I could imagine that no all such cornercases are solvable in 8.7, due to the limited list length. For 9.0 there will be more opportunities.

griffinmarkdown2022-09-21 13:59:08

I ran into this while testing. I will be going through the code and putting in boundary checks. In theory, the ArithSeries can handle Inf sized lists, but hardware integer limits prevail. I'll be working on this over the next several days.

Note: I'm not in the list of possible assignees. Can this be corrected?

griffin Ticket [9933cc4d88]: 3 changes [History diff]2022-09-25 17:50:27
apnadkarni Ticket [9933cc4d88]: 3 changes [History diff]2023-07-05 09:58:25
griffinplain2023-07-12 20:49:38
Fixed with [a9d278979e].
Log in (anonymous is fine) to add a comment.