Product Site

5.1.1.26. superClasses

Returns the immediate superclasses of the receiver class in the form of a single-dimensional Array of the required size. The immediate superclasses are the original class used on a subclass or a mixinClass method, plus any additional superclasses defined with the inherit method. The array is in the order in which the class has inherited the classes. The original class used on a subclass or mixinClass method is the first item of the array.
Example 5.18. Class class — superClasses method
z=.class~superClasses
/* To obtain the information this returns, you could use:     */
do i over z
  say i
end