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

NAME

8       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              itcl::delete object foo::bar::x
44       If an error is encountered while destructing an object, the delete com‐
45       mand is aborted and the object remains alive.   To  destroy  an  object
46       without  regard  for  errors,  use  the "rename" command to destroy the
47       object access command.
48
49       delete namespace name ?name...?
50              Deletes one or more namespaces called name.   This  deletes  all
51              commands  and  variables in the namespace, and deletes all child
52              namespaces as well.  When a namespace is deleted, it is automat‐
53              ically removed from the import lists of all other namespaces.
54
55

KEYWORDS

57       namespace, proc, variable, ensemble
58
59
60
61itcl                                  3.0                            delete(n)
Impressum