Hello out there,
say I have a class and 2 instances like so
oo::class create MyClass {
constructor {someVal} {
my variable myVar
set myVar $someVal
}
method get {} {
my variable myVar
return $myVar
}
method set {val} {
my variable myVar
set myVar $val
}
}
MyClass create obj1 33
MyClass create obj2 99
How can I set a trace on 'myVar' of 'obj2'?
I found an example on the doc of the 'my' command but it sets a trace
on a global variable during which an object is invoked - which doesn't
fit my situation
Any help will be greatly appreciated
Helmut
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,066 |
Nodes: | 10 (0 / 10) |
Uptime: | 171:09:12 |
Calls: | 13,708 |
Calls today: | 2 |
Files: | 186,949 |
D/L today: |
7,377 files (2,034M bytes) |
Messages: | 2,415,847 |