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

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

From: Artur Trzewik <mail_at_xdobry.de>
Date: Tue, 30 Dec 2003 12:25:13 +0100

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'
%