ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActiveTcl 8.5
ActiveTcl 8.5.4.0 User Guide
ActiveTcl 8.5.4.0 Documentation Index
[incr Tcl]
body
class
code
configbody
delete
ensemble
find
is
itcl
Itcl AppendList, Itcl InitList, Itcl AppendListElem, Itcl InsertList, Itcl CreateListElem, Itcl InsertListElem, Itcl DeleteList, Itcl DeleteListElem, Itcl SetListValue
Itcl CreateClass, Itcl FindClass, Itcl IsClass, Itcl DeleteClass, Itcl IsClassNamespace
Itcl DeleteObject, Itcl CreateObject, Itcl FindObject, Itcl IsObject, Itcl IsObjectIsa
Itcl EventuallyFree, Itcl PreserveData, Itcl ReleaseData
Itcl FindC, Itcl RegisterC, Itcl RegisterObjC
Itcl PeekStack, Itcl DeleteStack, Itcl InitStack, Itcl PopStack, Itcl PushStack, Itcl GetStackSize, Itcl GetStackValue
itclvars
local
scope

MyASPN >> Reference >> ActiveTcl 8.5 >> ActiveTcl 8.5.4.0 User Guide >> ActiveTcl 8.5.4.0 Documentation Index >> [incr Tcl]
ActiveTcl 8.5 documentation

[incr\ Tcl]

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 [incrTcl] 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 [incrTcl] 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 command 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 automatically removed from the import lists of all other namespaces.

KEYWORDS

namespace, proc, variable, ensemble
[ itcl ]
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved