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

[Xotcl] NX object copy bug?

From: Victor Mayevski <vitick_at_gmail.com>
Date: Wed, 15 Dec 2010 16:26:08 -0800

Hello Gustaf,

When an object contains a setter, and if you do a copy of that object,
the variable gets copied but the setter method is not copied.

Object create o;
o setter s;
o s value;
o s;# returns "value"
o copy o1;
o1 s; # error: unable to dispatch method 's'

When I use "attribute" instead of "setter", it works fine.