以下委托不起作用。
我如何让它工作?
package require itcl
itcl::extendedclass Tail {
method wag {} {
return "Wag, wag, wag"
}
}
itcl::extendedclass Dog {
delegate method wag to tail
constructor {} {
set tail [Tail #auto]
}
}
puts [info patchlevel]
puts $itcl::patchLevel
Dog dog
dog wag
错误截图: