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 iobates
11 hours ago
tcl by iobates
1 days ago
tcl by juliannoble2
11 days ago
tcl by juliannoble2
13 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by oldlaptop
21 days ago
tcl by apn
36 days ago
tcl by arjen
50 days ago
Submit
New paste
Documentation
From Jabber