Posted to tcl by anticrisis at Mon Jan 25 21:57:09 GMT 2021view pretty
namespace eval test { oo::class create Foo { constructor {} { namespace path [linsert [namespace path] 0 ::util] } } }
namespace eval test { oo::class create Foo { constructor {} { namespace path [linsert [namespace path] 0 ::util] } } }
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