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 schelte
7 days ago
tcl by emiliano
14 days ago
tcl by fvogel
14 days ago
tcl by emiliano
14 days ago
tcl by rmax
31 days ago
tcl by oldlaptop
31 days ago
tcl by schelte
31 days ago
tcl by Bradipo
44 days ago
tcl by kbk
54 days ago
tcl by oldlaptop
57 days ago
Submit
New paste
Documentation
From Jabber