Adding a method to the class
Posted to
tcl
by hypnotoad at Fri Apr 05 17:28:07 GMT 2019
view raw
oo::class create Bar {}
oo::objdefine Bar method new_value name {
# Build your template as the variable $body
oo::objdefine [self] method
$name
args
$body
}
Recent Posts
tcl by Guest86
2 days ago
tcl by Guest86
2 days ago
tcl by Guest86
2 days ago
tcl by Guest86
2 days ago
tcl by oldlaptop
2 days ago
tcl by mookie
14 days ago
tcl by cgm
15 days ago
tcl by egavilan
21 days ago
tcl by smlckz
22 days ago
tcl by Guest86
27 days ago
Submit
New paste
Documentation
From Jabber