ERASE

Synopsis
ERASE contentslist
ER contentslist
Description

Erases the procedures, variables, and property lists named in contentslist. Once erased, the named things cannot be called or referenced. Primitive procedures are not erased unless the variable REDEFP has the value TRUE.

It is possible to erase variables which shadow another variable through dynamic scoping. In this case, the variable remains erased until it would have gone out of scope, at which time the shadowed variable reappears in the workspace with its former value.

ERASE does not throw an error if it is asked to erase a procedure, variable, or property list that is not in the workspace. However, ERASE does throw an error when it is asked to erase a primitive when REDEFP either has not been set or is FALSE.

See the Workspace Queries section for an explanation of the formats of contentslist.

Example
TO FOO
  PRINT "hello
END

FOO
hello
ERASE "FOO
FOO
I don't know how to FOO

SourceForge.net Logo