View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] [Fwd: Bug with namespace'd Class?]

From: Damon Courtney <>
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 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?


PS: Windows, Tcl 8.4.3, XOTcl 1.3.1