This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



delete(n)                                        [incr Tcl]                                        delete(n)



____________________________________________________________________________________________________________

NAME
       delete - delete things in the interpreter

SYNOPSIS
       itcl::delete option ?arg arg ...?
____________________________________________________________________________________________________________


DESCRIPTION
       The delete command is used to delete things in the interpreter.  It is implemented as an ensemble, so
       extensions can add their own options and extend the behavior of this command.  By default, the delete
       command handles the destruction of namespaces.

       The  option  argument determines what action is carried out by the command.  The legal options (which
       may be abbreviated) are:

       delete class name ?name...?
              Deletes one or more [incr Tcl] classes called name.  This deletes all objects  in  the  class,
              and all derived classes as well.

              If an error is encountered while destructing an object, it will prevent the destruction of the
              class and any remaining objects.  To destroy the entire class without regard for  errors,  use
              the "delete namespace" command.

       delete object name ?name...?
              Deletes  one  or  more  [incr Tcl]  objects called name.  An object is deleted by invoking all
              destructors in its class hierarchy, in order from most- to least-specific.  If all destructors
              are  successful,  data associated with the object is deleted and the name is removed as a com-mand command
              mand from the interpreter.

              If the access command for an object resides in another namespace, then its qualified name  can
              be used:
              itcl::delete object foo::bar::x
       If  an error is encountered while destructing an object, the delete command is aborted and the object
       remains alive.  To destroy an object without regard for errors, use the "rename" command  to  destroy
       the object access command.

       delete namespace name ?name...?
              Deletes  one  or  more namespaces called name.  This deletes all commands and variables in the
              namespace, and deletes all child namespaces as well.  When a namespace is deleted, it is auto-matically automatically
              matically removed from the import lists of all other namespaces.


KEYWORDS
       namespace, proc, variable, ensemble



itcl                                                 3.0                                           delete(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Tcl project.
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Tcl project through their bug reporting page.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...