[Xotcl] xotcl 1.3.7 problem

Koen Danckaert koen at retarget.com
Thu Sep 29 18:55:47 CEST 2005


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}

Koen Danckaert

More information about the Xotcl mailing list