9.8.3 Smashing packages

When you smash a package, the following happens:

  1. All the package's symbols are uninterned.
  2. The package structure is deleted.
  3. Its symbols' function definitions, property lists, classes, values, and structure definitions are deleted or set to nil.

After the package is smashed, the symbols continue to exist, but all the information they contained is gone. By being uninterned they become eligible for garbage collection. Also, the chances of any objects they referred to being collected are increased.

CAUTION: Smashing destroys a whole package and all information within its symbols. use it carefully.

Note: Any symbol whose home package is to be smashed can be retained by being uninterned before delivery commences.

LispWorks Delivery User Guide - 14 Mar 2008