incr Tclでクラス間の友情を得る方法はありますか?
以下のコードを検討してください。
package require Itcl
::itcl::class A {
private {
proc f { } {
puts "==== A::f"
}
}
}
::itcl::class B {
public {
proc g { } {
puts "==== want to be able to call A::f"
}
}
}
のバー機能のA::f
外から見えないようにしたい。どうすればこれを達成できますか?A
B