tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,14 @@
|
|||
package require Tcl 8.6
|
||||
oo::class create Example {
|
||||
method foo {} {return 42}
|
||||
method 1 {s} {puts "fee$s"}
|
||||
method 2 {s} {puts "fie$s"}
|
||||
method 3 {s} {puts "foe$s"}
|
||||
method 4 {s} {puts "fum$s"}
|
||||
}
|
||||
set eg [Example new]
|
||||
set mthd [format "%c%c%c" 102 111 111]; # A "foo" by any other means would smell as sweet
|
||||
puts [$eg $mthd]
|
||||
for {set i 1} {$i <= 4} {incr i} {
|
||||
$eg $i ...
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue