3 # Copyright (C) 2004-2006, The Perl Foundation.
6 # the following lines re-execute this as a tcl script
7 # the \ at the end of these lines makes them a comment in tcl \
8 use lib qw(languages/tcl/lib tcl/lib lib ../lib ../../lib); # \
12 source lib/test_more.tcl
17 for {set a 0} {$a < 10} {incr a} {
18 if {$a > 5} { continue }
19 set result [append result $a]
22 } {10 012345} {continue from for}
29 if {$a < 5} { continue }
30 set result [append result $a]
33 } {11 567891011} {continue from while}
36 proc test {} {continue}
38 } {invoked "continue" outside of a loop} \
39 {continue outside of a loop}
42 proc test {} {continue}
43 for {set i 0} {$i < 5} {incr i} {test}
44 } {invoked "continue" outside of a loop} \
45 {continue in a proc called in a loop}