accessing stuff in a coroutine's main proc
Posted to
tcl
by kbk at Fri Nov 02 19:54:29 GMT 2012
view raw
proc
comain {} {
set
configVar {configContent}
yield [
info
coroutine]
dosomething
}
proc
dosomething {} {
upvar
\#1 configVar cv
yield
$cv
}
coroutine theCoro comain
puts
[theCoro]
Recent Posts
tcl by oldlaptop
1 days ago
tcl by mookie
7 days ago
tcl by dandyn
14 days ago
tcl by Bradipo
14 days ago
tcl by Bradipo
14 days ago
tcl by oldlaptop
38 days ago
tcl by oldlaptop
39 days ago
tcl by mookie
43 days ago
tcl by mookie
44 days ago
tcl by georgtree
45 days ago
Submit
New paste
Documentation
From Jabber