The OpenD Programming Language

destroy

Destroys the given object and optionally resets to initial state. It's used to destroy an object, calling its destructor or finalizer so it no longer references any other objects. It does not initiate a GC cycle or free any GC memory. If initialize is supplied false, the object is considered invalid after destruction, and should not be referenced.

  1. void destroy(T obj)
    void
    destroy
    (
    bool initialize = true
    T
    )
    (
    ref T obj
    )
    if (
    is(T == struct)
    )
  2. void destroy(T obj)
  3. void destroy(T obj)
  4. void destroy(T obj)
  5. void destroy(T obj)

Meta