No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] XOtcl 1.3 bug
From: Attilio Dona` <attilio.dona_at_telecomitalia.it>
Date: Wed, 06 Oct 2004 17:38:02 +0200
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
--------------------------------------------------------------------
Date: Wed, 06 Oct 2004 17:38:02 +0200
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
--------------------------------------------------------------------