Programmer's Reference

Class identity testing

isCharacter, isClass, isFloat, isInteger, isMetaclass, isDBString, isSBString, isString, isSymbol

Porting tip:The class identity testing messages are all short (and often optimized) forms of:
"self class = {NameOfClass}"
"self isKindOf: {NameOfClass}"

Each Smalltalk dialect has its own list of short forms; the choices are usually driven by implementation details. Smalltalk/V has a large number of such methods, while Objectworks\Smalltalk uses only a few. In CLDT we have chosen a middle course. Note that Smalltalk/V uses the spelling MetaClass rather than the Blue Book spelling Metaclass, which is used in CLDT and Objectworks\Smalltalk.


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