An immediate object's value is represented directly in the object pointer, with no data associated. In VA Smalltalk,
true,
false,
nil,
Character, and
SmallInteger are immediate. In C,
true,
false, and
nil can be referenced as
EsTrue,
EsFalse, and
EsNil, respectively.
VA Smalltalk SmallIntegers range from -1073741824 to +1073741823.
A pointer object's instance variables or indexed slots contain references to other objects. An example of this type of object is
Array.
Byte,
word, and
long objects have no named instance variables. The indexed slots contain bytes, word, or longs, respectively.
If aBoolean is
true, marks the receiver as read-only. If
aBoolean is
false, marks the receiver as read-write. Answers
true if the receiver is now read-only,
false if the receiver is now read-write.
Answers true if the receiver is read-only, false if not.
If this method answers true, the store operation is retried. If the receiver has been marked read-write, the store will take place. If not, this message will be sent again. If this method answers
false, the store operation is ignored.
storedObject and
anInteger are suitable for
instVarAt:Put: not
at:put:. If the receiver is a
String or
DBString,
storedObject will be an
Integer, not a
Character.
Pointer, byte, word, and long objects can be made fixed. A fixed object will not be moved by the Smalltalk garbage collector. Fixed objects can be used to provide C code with memory that can be used to store results (for example, a buffer for a communications interrupt handler). Once an object has been made fixed, its address does not change.
Answers true if the receiver is fixed,
false if not.
Copyright 2005, 2020 Instantiations, Inc. All rights reserved.