OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [doc/] [delete.n] - Diff between revs 578 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 578 Rev 1765
'\"
'\"
'\" Copyright (c) 1993-1998  Lucent Technologies, Inc.
'\" Copyright (c) 1993-1998  Lucent Technologies, Inc.
'\"
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
'\"
'\" RCS: $Id: delete.n,v 1.1.1.1 2002-01-16 10:24:46 markom Exp $
'\" RCS: $Id: delete.n,v 1.1.1.1 2002-01-16 10:24:46 markom Exp $
'\"
'\"
.so man.macros
.so man.macros
.TH delete n 3.0 itcl "[incr\ Tcl]"
.TH delete n 3.0 itcl "[incr\ Tcl]"
.BS
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
.SH NAME
delete \- delete things in the interpreter
delete \- delete things in the interpreter
.SH SYNOPSIS
.SH SYNOPSIS
\fBdelete \fIoption\fR ?\fIarg arg ...\fR?
\fBdelete \fIoption\fR ?\fIarg arg ...\fR?
.BE
.BE
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
The \fBdelete\fR command is used to delete things in the interpreter.
The \fBdelete\fR command is used to delete things in the interpreter.
It is implemented as an ensemble, so extensions can add their own
It is implemented as an ensemble, so extensions can add their own
options and extend the behavior of this command.  By default, the
options and extend the behavior of this command.  By default, the
\fBdelete\fR command handles the destruction of namespaces.
\fBdelete\fR command handles the destruction of namespaces.
.PP
.PP
The \fIoption\fR argument determines what action is carried out
The \fIoption\fR argument determines what action is carried out
by the command.  The legal \fIoptions\fR (which may be abbreviated)
by the command.  The legal \fIoptions\fR (which may be abbreviated)
are:
are:
.TP
.TP
\fBdelete class \fIname\fR ?\fIname...\fR?
\fBdelete class \fIname\fR ?\fIname...\fR?
Deletes one or more \fB[incr\ Tcl]\fR classes called \fIname\fR.
Deletes one or more \fB[incr\ Tcl]\fR classes called \fIname\fR.
This deletes all objects in the class, and all derived classes
This deletes all objects in the class, and all derived classes
as well.
as well.
.sp
.sp
If an error is encountered while destructing an object, it will
If an error is encountered while destructing an object, it will
prevent the destruction of the class and any remaining objects.
prevent the destruction of the class and any remaining objects.
To destroy the entire class without regard for errors, use the
To destroy the entire class without regard for errors, use the
"\fBdelete namespace\fR" command.
"\fBdelete namespace\fR" command.
.TP
.TP
\fBdelete object \fIname\fR ?\fIname...\fR?
\fBdelete object \fIname\fR ?\fIname...\fR?
Deletes one or more \fB[incr\ Tcl]\fR objects called \fIname\fR.
Deletes one or more \fB[incr\ Tcl]\fR objects called \fIname\fR.
An object is deleted by invoking all destructors in its class
An object is deleted by invoking all destructors in its class
hierarchy, in order from most- to least-specific.  If all destructors
hierarchy, in order from most- to least-specific.  If all destructors
are successful, data associated with the object is deleted and
are successful, data associated with the object is deleted and
the \fIname\fR is removed as a command from the interpreter.
the \fIname\fR is removed as a command from the interpreter.
.sp
.sp
If the access command for an object resides in another namespace,
If the access command for an object resides in another namespace,
then its qualified name can be used:
then its qualified name can be used:
.CS
.CS
delete object foo::bar::x
delete object foo::bar::x
.CE
.CE
If an error is encountered while destructing an object, the
If an error is encountered while destructing an object, the
\fBdelete\fR command is aborted and the object remains alive.
\fBdelete\fR command is aborted and the object remains alive.
To destroy an object without regard for errors, use the
To destroy an object without regard for errors, use the
"\fBrename\fR" command to destroy the object access command.
"\fBrename\fR" command to destroy the object access command.
.TP
.TP
\fBdelete namespace \fIname\fR ?\fIname...\fR?
\fBdelete namespace \fIname\fR ?\fIname...\fR?
Deletes one or more namespaces called \fIname\fR.  This deletes
Deletes one or more namespaces called \fIname\fR.  This deletes
all commands and variables in the namespace, and deletes all
all commands and variables in the namespace, and deletes all
child namespaces as well.  When a namespace is deleted, it is
child namespaces as well.  When a namespace is deleted, it is
automatically removed from the import lists of all other namespaces.
automatically removed from the import lists of all other namespaces.
.SH KEYWORDS
.SH KEYWORDS
namespace, proc, variable, ensemble
namespace, proc, variable, ensemble
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.