No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] [Fwd: Bug with namespace'd Class?]
From: Damon Courtney <damon-xotcl_at_tclhome.com>
Date: Tue, 2 Nov 2004 13:22:53 -0600 (CST)
Why does this not work?
package require XOTcl
::xotcl::Class Foo
Foo instproc bar {} {
puts "SELF = [self]"
}
Foo foo
% Foo foo
::foo
% foo bar
invalid command name "self"
But, if I "namespace import ::xotcl::*" and make the class with just
the Class command (not ::xotcl::Class), it works.
Any ideas?
D
PS: Windows, Tcl 8.4.3, XOTcl 1.3.1
Date: Tue, 2 Nov 2004 13:22:53 -0600 (CST)
Why does this not work?
package require XOTcl
::xotcl::Class Foo
Foo instproc bar {} {
puts "SELF = [self]"
}
Foo foo
% Foo foo
::foo
% foo bar
invalid command name "self"
But, if I "namespace import ::xotcl::*" and make the class with just
the Class command (not ::xotcl::Class), it works.
Any ideas?
D
PS: Windows, Tcl 8.4.3, XOTcl 1.3.1