[Xotcl] XOtcl 1.3 bug

Attilio Dona` attilio.dona at telecomitalia.it
Wed Oct 6 17:38:02 CEST 2004


Hy Gustaf and Uwe,

We have the following bug:

package require XOTcl
namespace import xotcl::*

xotcl::Class::Parameter create Param -parameter {
    {value  ""}
}

Class create MA -superclass Class

MA parameter {{v -Class {Param -value ciao} -default 1}} 

MA create A

puts "A exists pippo: [A exists pippo]"

set pippo 10

puts "A exists pippo: [A exists pippo]"


-->  A exists pippo: 0
-->  A exists pippo: 1

This is true if you have at least one parameter defined for a Metaclass
and for every global variable defined!

ciao
Attilio




--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster at telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20041006/594f5517/attachment.html


More information about the Xotcl mailing list