[Xotcl] Bug or feature in 1.1.1. Access to subobjects

Artur Trzewik mail at xdobry.de
Tue Dec 30 12:25:13 CET 2003


Hi!

I have discovered some interesting change in 1.1.1 that I could not find in 
ChangeLog.

In 1.1.1 one can access to subobject as method call
Example
b::a
can be produced as
b a
My problem is that I have "a" as method and as subobject from b.
Can I force "b" to invoke method "a" and not return subobject "a"?

Artur Trzewik

Example:
% [artur at localhost xotclIDE]$ /opt/tcl845/bin/tclsh8.4
% package require XOTcl
1.1
% namespace import xotcl::*
% Class A
::A
% Class B
::B
% B create b
::b
% A create b::a
::b::a
% b a
::b::a
% [artur at localhost xotclIDE]$ /opt/tcl844/bin/tclsh8.4
% package require XOTcl
1.0
% namespace import xotcl::*
% Class A
::A
% Class B
::B
% B create b
::b
% A create a
::a
% b a
b: unable to dispatch method 'a'
%




More information about the Xotcl mailing list