Hi Richard,
the problem is not the method log
, but that myClass logTest
is indeed a short form for myClass create logTest
. The following snippet should work, try it out in your ds/shell...
::xotcl::Class create myClass
myClass instproc logTest {} {
my log "Hello world!"
}
myClass create c1
c1 logTest
PS: XOTcl's successor NX is safer, it requires per default the explicit usage of the
create
method.