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
junk by bcharder
27 days ago
tcl by egavilan
36 days ago
tcl by Stu
38 days ago
tcl by Stu
38 days ago
tcl by oldlaptop
71 days ago
tcl by oldlaptop
71 days ago
tcl by Molnija Bjornsson
76 days ago
tcl by Molnija Bjornsson
76 days ago
tcl by zmoment
76 days ago
tcl by zmoment
76 days ago
Submit
New paste
Documentation
From Jabber