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

[Xotcl] nested objects in nx

From: <vitick_at_gmail.com>
Date: Tue, 26 Oct 2010 13:47:11 -0700 (PDT)

I was reading the migration guide, and at the end it talk about the incompatibilities. I have specifically tested the "Calling objects like methods" and I do not understand it. It just doesn't work right.
Example:

Object create a;
Object create a::b

a public method tst args {puts [self]};
a::b public method tst args {puts [self]};

a tst; #works, returns ::a
a::b tst; #error, invalid command self

a::b eval self; #works, returns ::a::b


Thanks