Testing objects
These functions enable users to determine what the class and type (immediate, bytes, words, longs, or pointers) of an object are.
Testing for classes
EsBehavior EsObjectClass(EsObject object)
Returns the class of object. The generic return type of EsBehavior is used because the class of object can be a Class or Metaclass.
Smalltalk equivalent: object class
BOOLEAN EsIsBoolean(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is true or false.
BOOLEAN EsIsCharacter(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is a Character.
BOOLEAN EsIsFalse(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is false.
 
BOOLEAN EsIsFloat(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is a Float.
BOOLEAN EsIsLargeInteger(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is a LargeInteger.
BOOLEAN EsIsNil(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is nil.
BOOLEAN EsIsSmallInteger(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is a SmallInteger.
BOOLEAN EsIsString(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is a String.
BOOLEAN EsIsTrue(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is true.
Testing for types
BOOLEAN EsIsBytes(EsObject object)
Returns TRUE or FALSE, indicating whether or not the instance variables of object contain bytes.
BOOLEAN EsIsCharacters(EsObject object)
Returns TRUE or FALSE, indicating whether or not object contains instances of Character. If this returns TRUE, object will be a byte or word object.
BOOLEAN EsIsImmediate(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is immediate.
 
BOOLEAN EsIsIndexable(EsObject object)
Returns TRUE or FALSE, indicating whether or not object has numbered instance variables.
 
BOOLEAN EsIsLongs(EsObject object)
Returns TRUE or FALSE, indicating whether or not the instance variables of object contain longs.
 
BOOLEAN EsIsPointers(EsObject object)
Returns TRUE or FALSE, indicating whether or not the instance variables of object contain pointers.
 
BOOLEAN EsIsReadOnly(EsObject object)
Returns TRUE or FALSE, indicating whether or not object is read-only.
 
BOOLEAN EsIsWords(EsObject object)
Returns TRUE or FALSE, indicating whether or not the instance variables of object contain words.
 
 
Last modified date: 01/29/2015