10.13.6.14 destroy/1

Synopsis

destroy(+Obj)

Arguments

Obj
object

Description

Dispose of Obj.

First send 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.

Exceptions

instantiation_error
Obj is unbound.
type_error
Object is not a valid object.

See Also

create/2


Send feedback on this subject.