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 dandyn
1 days ago
tcl by Stu
3 days ago
tcl by philbr-t
9 days ago
tcl by arjen
10 days ago
tcl by brain
17 days ago
tcl by mjanssen
19 days ago
tcl by godotdot
20 days ago
tcl by Bradipo
20 days ago
tcl by Stu
23 days ago
tcl by Stu
23 days ago
Submit
New paste
Documentation
From Jabber