aboutsummaryrefslogtreecommitdiff
path: root/tests/loop.test
AgeCommit message (Collapse)AuthorFilesLines
2025-07-16core: Jim_SetVariable() now frees value on errorSteve Bennett1-0/+9
If the value has a zero reference count, free it in the error path. Otherwise callers can't do: Jim_SetVariable(..., Jim_New...()) in case the object is leaked in the error path. Fix various callers that were previously freeing the object in the error path, and add a test to loop.test to show that this was not. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2020-12-26loop: Allow start value to be omittedSteve Bennett1-0/+8
It is convenient to be able to do just: loop i 5 { body } Where the start value is 0. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Add TclX-compatible loop commandSteve Bennett1-0/+152
Signed-off-by: Steve Bennett <steveb@workware.net.au>