Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc get_all_objects {{cls Class}} {
- set instances [list]
- foreach instance [$cls info instances] {
- if {[$instance isclass]} {
- lappend instances {*}[get_all_objects $instance]
- } else {
- lappend instances $instance
- }
- }
- return $instances
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement