qse/ase/cmd/stx/helper.st
2008-03-21 03:49:53 +00:00

14 lines
293 B
Smalltalk

| x |
"print the reverse hierarchy of a class"
x := Class.
[x isNil] whileFalse: [
Transcript show: x printString; cr.
x := x superclass].
| x |
"print the reverse hierarchy of a metaclass"
x := Class class.
[x isNil] whileFalse: [
Transcript show: x printString; cr.
x := x superclass].