Next: , Previous: , Up: obj-exp   [Contents][Index]


10.25.6.14 destroy/1

Synopsis

destroy(+Obj)

Arguments

Obj

object

Description

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.

Exceptions

instantiation_error

Obj is unbound.

type_error

Object is not a valid object.

See Also

create/2


Send feedback on this subject.