[Xotcl] possible bug?
Krzysztof Frukacz
frukacz.krzysztof at gmail.com
Mon Jan 10 16:15:50 CET 2011
Hello,
I attach a few files that will demonstrate the problem. Just run tester.tcl
On my PC the effect is that I get an error message:
::tmp1: unable to dispatch method 'testA'
while executing
"tmp1 testA"
The problem is that tmp1 is of class B and should be able to call testA,
which is defined its superclass - A.
I have found that the problem is source command, which includes file
a.xotcl several times in several different files. I don't understand
however why the message from interpreter says that it cannot find proc
testA - this doesn't make sense.
Is there a "nice" method to avoid this? Like in C we use #define and #ifndef
--
Krzysztof Frukacz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.xotcl
URL: <http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20110110/092eed0a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: b.xotcl
URL: <http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20110110/092eed0a/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: c.xotcl
URL: <http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20110110/092eed0a/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: extendedContainer.xotcl
URL: <http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20110110/092eed0a/attachment-0003.ksh>
More information about the Xotcl
mailing list