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

[Xotcl] xotcl 1.3.7 problem

From: Koen Danckaert <koen_at_retarget.com>
Date: Thu, 29 Sep 2005 18:55:47 +0200

Hello,

There seems to be a problem with instvar alias names in xotcl 1.3.7

Consider the following code:

Class C -parameter {number name}
C instproc test {} {
    my instvar {number x} name
    puts "$name $x"
}
C c -name koen -number 25
c test

This fails with
can't read "name": no such variable

It works when the aliased variables are put last in the instvar command:
my instvar name {number x}


Regards,
Koen Danckaert