Pike v8.1 release 6

Method destruct()


Method destruct

void destruct(void|object o)

Description

Mark an object as destructed.

Calls o->destroy(), and then clears all variables in the object. If no argument is given, the current object is destructed.

All pointers and function pointers to this object will become zero. The destructed object will be freed from memory as soon as possible.