It LIVES 0
Posted to
tcl
by colin at Sun Nov 14 22:12:45 GMT 2010
view raw
oo::class create Foo {
destructor {
variable
live 0
puts
stderr "destroying"
}
method bar {} {
variable
live 1
my
destroy
puts
stderr "It LIVES
$live
"
}
}
Foo create moop
moop bar
Recent Posts
tcl by egavilan
6 days ago
tcl by bch
12 days ago
tcl by Bradipo
12 days ago
tcl by aspect
12 days ago
tcl by Bradipo
12 days ago
tcl by Bradipo
12 days ago
tcl by Bradipo
12 days ago
lilypond by Bradipo
14 days ago
tcl by cgm
24 days ago
tcl by dandyn
33 days ago
Submit
New paste
Documentation
From Jabber