Hi,<br>Was wondering why it's not possible to import namespaces when XOTcl objects are involved. <br>The shortest example that I could rustle up is included below. <br>Help in understanding what prevents this from working is much appreciated.
<br>-shishir<br><br><br>% package require XOTcl<br>1.4.0<br><br>% namespace eval ::my::test {<br> namespace import ::xotcl::*<br><br> Class Foo<br><br> Foo instproc bar {} {<br> puts " foo bar is a very tasty!"
<br> }<br>}<br><br>% ::my::test::Foo foo<br>::foo<br>% foo bar<br> foo bar is a very tasty!<br><br>% ::my::test::Foo info instances<br>::foo<br><br>% # Why doesn't the following work? <br>% namespace import ::my::test::*
<br><br>% Foo foo2<br>invalid command name "Foo"<br><br>% ::my::test::Foo info instances<br>::foo<br><br>% Foo info instances<br>invalid command name "Foo"<br><br>