Programmer's Reference

Class queries

allSubclasses, allSuperclasses, inheritsFrom:, name, subclasses, superclass, symbol, whichClassIncludesSelector:, withAllSubclasses, withAllSuperclasses

Note:The Blue Book defines all of these messages except symbol and withAllSuperclasses. We added symbol to provide a platform-independent message that returned a symbol equal to the class name, and withAllSuperclasses because it is the obvious complement of withAllSubclasses.
Porting tip:Smalltalk/V does not support whichClassIncludesSelector:, and it returns a string when name is sent. Objectworks\Smalltalk returns a symbol when name is sent, and does not support symbol.
Tip:If name is sent to a class, a Symbol is answered. If name is sent to a metaclass, a String is answered.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]