Next: obj-exp-direct_message, Previous: obj-exp-descendant_of, Up: obj-exp [Contents][Index]
destroy/1
destroy(+Obj)
object
First, sends a destroy
message to Obj, if such a message is defined for
its class. A destroy
message takes no argument. Unlike create/2
, it
is possible to destroy instances of a class even if it defines no
destroy
methods. Finally, disposes of Obj.
instantiation_error
Obj is unbound.
type_error
Object is not a valid object.
create/2