uplevel 1 return -code break -- why?
Posted to
tcl
by kostix at Wed Aug 15 22:58:11 GMT 2007
view raw
%
proc
mybreak {} {
uplevel
1
return
-code
break
}
%
proc
foo {} {
set
i 0
while
true {
incr
i
if
{
$i
== 10} {
mybreak
}
}
puts
"must not reach here"
}
% foo
must not reach here
Recent Posts
tcl by iobates
1 days ago
tcl by mookie
4 days ago
tcl by sebres
6 days ago
tcl by iobates
23 days ago
tcl by iobates
23 days ago
tcl by iobates
23 days ago
tcl by FLORENTIS
27 days ago
tcl by Florentis
27 days ago
tcl by schelte
32 days ago
tcl by iobates
32 days ago
Submit
New paste
Documentation
From Jabber