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
2 days ago
tcl by apn
4 days ago
tcl by rmax
7 days ago
tcl by kevin_walzer
10 days ago
tcl by Bradipo
25 days ago
tcl by Stu
47 days ago
tcl by rhobart
60 days ago
tcl by stevel
64 days ago
tcl by dandyn
72 days ago
tcl by dandyn
72 days ago
Submit
New paste
Documentation
From Jabber