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 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
43 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