this is cool
Posted to
tcl
by colin at Wed Nov 17 23:40:47 GMT 2010
view raw
namespace
eval foo {
proc
bar {} {
while
{1} {
variable
v
puts
[
incr
v]
yield
}
}
}
coroutine ::coro ::foo::bar
namespace
delete ::foo
while
{1} {
::coro
}
Recent Posts
tcl by oldlaptop
5 days ago
tcl by mookie
11 days ago
tcl by dandyn
18 days ago
tcl by Bradipo
18 days ago
tcl by Bradipo
18 days ago
tcl by oldlaptop
42 days ago
tcl by oldlaptop
42 days ago
tcl by mookie
47 days ago
tcl by mookie
48 days ago
tcl by georgtree
49 days ago
Submit
New paste
Documentation
From Jabber