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 rhobart
3 days ago
tcl by rhobart
3 days ago
tcl by rhobart
4 days ago
tcl by Bradipo
4 days ago
tcl by rhobart
4 days ago
tcl by sssc
7 days ago
tcl by mookie
24 days ago
tcl by JMN
31 days ago
tcl by JMN
32 days ago
tcl by mookie
32 days ago
Submit
New paste
Documentation
From Jabber