Next: Object-change and update, Previous: Object class-initialization, Up: Object [Index]
Answer whether the receiver is equal to arg. The equality test is by default the same as that for identical objects. = must not fail; answer false if the receiver cannot be compared to arg
Answer whether the receiver is the same object as arg. This is a very fast test and is called ’object identity’.
Return an Array of Objects that point to the receiver.
Answer the object index associated to the receiver. The object index doesn’t change when garbage collection is performed.
Answer the index-th indexed instance variable of the receiver
Store value in the index-th indexed instance variable of the receiver
Answer the index-th indexed instance variable of the receiver. This method must not be overridden, override at: instead
Store value in the index-th indexed instance variable of the receiver This method must not be overridden, override at:put: instead
Print a basic representation of the receiver
Answer the number of indexed instance variable in the receiver
Change all references to the receiver into references to otherObject. Depending on the implementation, references to otherObject might or might not be transformed into the receiver (respectively, ’two-way become’ and ’one-way become’). Implementations doing one-way become answer the receiver (so that it is not lost). Most implementations doing two-way become answer otherObject, but this is not assured - so do answer the receiver for consistency. GNU Smalltalk does two-way become and answers otherObject, but this might change in future versions: programs should not rely on the behavior and results of #become: .
Change all references to the receiver into references to otherObject. References to otherObject are not transformed into the receiver. Answer the receiver so that it is not lost.
Mutate the class of the receiver to be aBehavior. Note: Tacitly assumes that the structure is the same for the original and new class!!
Private - Check the reason why an access to the given indexed instance variable failed
Private - Check the reason why an access to the given indexed instance variable failed. Evaluate aBlock for an invalid index.
Private - Check the reason why a store to the given indexed instance variable failed
Answer the class to which the receiver belongs
Called to enter the debugger
Answer an hash value for the receiver. This hash value is ok for objects that do not redefine ==.
Answer an hash value for the receiver. This method must not be overridden
Answer the index-th instance variable of the receiver. This method must not be overridden.
Store value in the index-th instance variable of the receiver. This method must not be overridden.
Answer whether the object’s indexed instance variables can be written
Answer whether the object is to be considered untrusted.
Make the object an ’ephemeron’. An ephemeron is marked after all other objects, and if no references are found to the key except from the object itself, it is sent the #mourn message.
Avoid that the receiver moves in memory across garbage collections.
Set whether the object’s indexed instance variables can be written
Set whether the object is to be considered untrusted.
Make the object a ’weak’ one. When an object is only referenced by weak objects, it is collected and the slots in the weak objects are changed to nils by the VM; the weak object is then sent the #mourn message.
Private - use this method to mark code which needs to be reworked, removed, etc. You can then find all senders of #mark: to find all marked methods or you can look for all senders of the symbol that you sent to #mark: to find a category of marked methods.
Private - answer another instance of the receiver’s class, or nil if the entire object table has been walked
Called when a method defined by a class is not yet implemented, but is going to be
Send the unary message named selectorOrMessageOrMethod (if a Symbol) to the receiver, or the message and arguments it identifies (if a Message or DirectedMessage), or finally execute the method within the receiver (if a CompiledMethod). In the last case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Send the message named selectorOrMethod (if a Symbol) to the receiver, passing arg1 to it, or execute the method within the receiver (if a CompiledMethod). In the latter case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Send the message named selectorOrMethod (if a Symbol) to the receiver, passing arg1 and arg2 to it, or execute the method within the receiver (if a CompiledMethod). In the latter case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Send the message named selectorOrMethod (if a Symbol) to the receiver, passing the other arguments to it, or execute the method within the receiver (if a CompiledMethod). In the latter case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Send the message named selectorOrMethod (if a Symbol) to the receiver, passing the other arguments to it, or execute the method within the receiver (if a CompiledMethod). In the latter case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Send the message named selectorOrMethod (if a Symbol) to the receiver, passing the elements of argumentsArray as parameters, or execute the method within the receiver (if a CompiledMethod). In the latter case, the method need not reside on the hierarchy from the receiver’s class to Object – it need not reside at all in a MethodDictionary, in fact – but doing bad things will compromise stability of the Smalltalk virtual machine (and don’t blame anybody but yourself).
This method should not be overridden
Called when a VM primitive fails
Returns a shallow copy of the receiver (the instance variables are not copied)
Called when objects belonging to a class should not answer a selector defined by a superclass
Answer the number of indexed instance variable in the receiver
Called when a method defined by a class should be overridden in a subclass
Move the object to oldspace.
Next: Object-change and update, Previous: Object class-initialization, Up: Object [Index]