title: Static function inheritance in [incr Tcl]
body: <p>Inheritance in <a href="http://www.tcl.tk/man/itcl3.1/class.n.html" rel="nofollow">incr Tcl</a> doesn't work as expected. Consider the code below.</p>
  
  <pre><code>package require Itcl
  
  ::itcl::class Base \
  {
  public {
      proc function { } { puts "==== Base::function" }
  }
  }
  
  ::itcl::class Derived { inherit Base }
  
  Base::function
  Derived::function    ;# FAILS
  </code></pre>
  
  <p>The last line fails, so <code>Base::function</code> is not inherited at <code>Derived</code>, though <code>Derived</code> inherits from <code>Base</code>.</p>
  
  <p>Am I doing something wrong, or <a href="http://www.tcl.tk/man/itcl3.1/class.n.html" rel="nofollow">incr Tcl</a> is designed to behave so?</p>