Overview
| Artifact ID: | be9dc01892709f363ab29c31a440c126e8bd7089 |
|---|---|
| Ticket: | 2712377fffffffffffffffffffffffffffffffff
info vars doesn't show object variables correctly |
| User & Date: | cnassau on 2009-03-25 18:52:56 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The following script behaves badly: oo::class create test { variable foo bar method setvars {f b} { set foo $f set bar $b } method dump1 {} { puts <1> foreach v [info vars *] { puts dump1:$v=[set $v] } } method dump2 {} { puts <2> foreach v [info vars *] { puts dump2:$v=[set $v] } puts foo=$foo } } test create stuff stuff setvars what ever stuff dump1 stuff dump2 The output is <1> <2> dump2:foo=what foo=what I would have expected that [info vars] returns both foo and bar in both dump methods. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "cnassau"
- subsystem changed to: "35. TclOO Package"
- title changed to: "info vars doesn't show object variables correctly"
- type changed to: "Bug"