Itcl 中 class 方法内的自引用

Self refence within class methods in Itcl

是否可以在class的成员方法中引用当前对象。 请考虑以下代码:

itcl::class widget {
   private variable inst

   method ChildCount {} {
       return [llength [keylkeys inst children]]
   }
   method AddChild {childWidget} {
       inst children.[ChildCount] $childWidget
       # ***HOW TO GET THIS WORKING?***
       $childWidget SetParent $self
   }
}

$self$childWidget SetParent $self 中的等价物是什么?

好的,经过更多的在线搜索后很明显 -> $this 变量应该可以解决问题。