Method code for $root.destroy()

[Turn off line numbering]
  1: // This doesn't actually destroy us immediately, but we will go away when
  2: // nothing is holding onto us any more.
  3: (> .perms(sender(), 'manager) <);
  4: if (.has_flag('core))
  5:     throw(~perm, "This object is a core object, and cannot be destroyed!");
  6: (| .uninitialize('destroy) |);
  7: destroy();

// Created as a part of ColdCore, see: @help Credit

Tlon