1delete(n)                         [incr Tcl]                         delete(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       itcl::delete - delete things in the interpreter
9

SYNOPSIS

11       itcl::delete option ?arg arg ...?
12______________________________________________________________________________
13
14

DESCRIPTION

16       The  delete command is used to delete things in the interpreter.  It is
17       implemented as an ensemble, so extensions can add their own options and
18       extend  the  behavior  of this command.  By default, the delete command
19       handles the destruction of namespaces.
20
21       The option argument determines what action is carried out by  the  com‐
22       mand.  The legal options (which may be abbreviated) are:
23
24       delete class name ?name...?
25              Deletes  one  or  more  [incr Tcl]  classes  called  name.  This
26              deletes all objects in the class, and  all  derived  classes  as
27              well.
28
29              If  an error is encountered while destructing an object, it will
30              prevent the destruction of the class and any remaining  objects.
31              To  destroy  the entire class without regard for errors, use the
32              "delete namespace" command.
33
34       delete object name ?name...?
35              Deletes one or more [incr Tcl] objects called name.   An  object
36              is  deleted  by invoking all destructors in its class hierarchy,
37              in order from most- to least-specific.  If all  destructors  are
38              successful,  data  associated with the object is deleted and the
39              name is removed as a command from the interpreter.
40
41              If the access command for an object resides  in  another  names‐
42              pace, then its qualified name can be used:
43
44                     itcl::delete object foo::bar::x
45
46              If  an  error  is  encountered  while destructing an object, the
47              delete command is aborted and  the  object  remains  alive.   To
48              destroy  an  object  without regard for errors, use the "rename"
49              command to destroy the object access command.
50
51       delete namespace name ?name...?
52              Deletes one or more namespaces called name.   This  deletes  all
53              commands  and  variables in the namespace, and deletes all child
54              namespaces as well.  When a namespace is deleted, it is automat‐
55              ically removed from the import lists of all other namespaces.
56
57

KEYWORDS

59       namespace, proc, variable, ensemble
60
61
62
63itcl                                  3.0                            delete(n)
Impressum