View source code
Display the source code in object.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function object.destroy
Destroys the given object
and puts it in an invalid state. It's used to
destroy
an object
so that any cleanup which its destructor or finalizer
does is done and so that it no longer references any other objects. It does
not initiate a GC cycle or free any GC memory.
Prototype
void destroy(T)( T obj ) if (is(T == class));
Authors
Walter Bright, Sean Kelly