Posted to tcl by anticrisis at Mon Jan 25 21:57:09 GMT 2021view raw

  1. namespace eval test {
  2. oo::class create Foo {
  3. constructor {} {
  4. namespace path [linsert [namespace path] 0 ::util]
  5. }
  6. }
  7. }
  8.  

Comments

Posted by anticrisis at Mon Jan 25 21:59:45 GMT 2021 [text] [code]

- namespace path outside the class has no effect on methods inside the class - default path inside the class is something called oo::Helpers