No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] why Attribute is not imported?
From: Mykhaylo Sorochan <msorc_at_bigmir.net>
Date: Sun, 1 Nov 2009 02:20:38 +0200
Hello,
Why in the following code launched from tclsh I get the error:
invalid command name "Attribute" during '::test1::Test slots'
######
package provide test1 0.1
package require XOTcl
namespace eval ::test1 {
namespace import ::xotcl::*
Class Test -slots {
Attribute name
}
namespace export Test
}
namespace import ::test1::*
######
XOTcl 1.6.4, works ok from xotclsh and when 'namespace import ::xotcl::*'
comes right after 'package require XOTcl' and not within test1 namespace.
Thanks.
Date: Sun, 1 Nov 2009 02:20:38 +0200
Hello,
Why in the following code launched from tclsh I get the error:
invalid command name "Attribute" during '::test1::Test slots'
######
package provide test1 0.1
package require XOTcl
namespace eval ::test1 {
namespace import ::xotcl::*
Class Test -slots {
Attribute name
}
namespace export Test
}
namespace import ::test1::*
######
XOTcl 1.6.4, works ok from xotclsh and when 'namespace import ::xotcl::*'
comes right after 'package require XOTcl' and not within test1 namespace.
Thanks.
-- Regards, Mykhaylo