delete(3itcl)
π delete β bestie, we're clearing the whole vibe out π
okay so this is delete(3itcl) from the [incr Tcl] manual, and it is literally the "yeet it into the void" command. let's get into it π«Ά
β¨ NAME β¨
itcl::delete β delete things in the interpreter ποΈβ¨
πΈ SYNOPSIS πΈ
itcl::delete option ?arg arg ...?
π¦ DESCRIPTION π¦
so the delete command is how you delete things in the interpreter. it's giving very main character energy because it's implemented as an ensemble β which means extensions can slide in, add their own options, and extend the behavior of this command. by default tho? the delete command handles the destruction of namespaces. no cap π
the option argument decides what action actually gets carried out by the command. the legal options (and yes bestie, they may be abbreviated) are:
π OPTIONS π
delete classname?name...?β deletes one or more [incr Tcl] classes called name. and the way that this works is it deletes all objects in the class, AND all derived classes as well. it's giving full send π₯
β οΈ heads up bestie: 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. periodt.
delete objectname?name...?β deletes one or more [incr Tcl] objects called name. an object gets deleted by invoking all destructors in its class hierarchy, in order from most- to least-specific. if all destructors are successful, the data associated with the object is deleted and the name is removed as a command from the interpreter. slay π
if the access command for an object resides in another namespace, then its qualified name can be used:
itcl::delete object foo::bar::x
β οΈ and if an error is encountered while destructing an object, thedeletecommand 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. (iykyk)
delete namespacename?name...?β deletes one or more namespaces called name. this deletes all commands and variables in the namespace, and deletes all child namespaces as well. and when a namespace is deleted, it is automatically removed from the import lists of all other namespaces. it's giving spring cleaning π§πΈ
π KEYWORDS π
namespace, proc, variable, ensemble
and that's the whole page bestie, you ate that πβ¨
this was itcl version 3.0, page delete(3itcl) β catch you in the group chat π«Άππ¦
π¦ where this page comes from
- debian bookworm: tcl-itcl4-doc 4.2.3-1 Β· BSD-Tcl
- debian trixie: tcl-itcl4-doc 4.3.2-3 Β· BSD-Tcl
- ubuntu jammy: tcl-itcl4-doc 4.2.2-1 Β· BSD-Tcl
- ubuntu noble: tcl-itcl4-doc 4.2.4-1 Β· BSD-Tcl
- ubuntu questing: tcl-itcl4-doc 4.3.2-3
- ubuntu resolute: tcl-itcl4-doc 4.3.5-1 Β· BSD-Tcl
- ubuntu stonking: tcl-itcl4-doc 4.3.8-1 Β· BSD-Tcl
- Copyright (c) 1993-1998 Lucent Technologies, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms