Function package-shadowing-symbols

Syntax:

package-shadowing-symbols package symbols

Arguments and Values:

Issue PACKAGE-FUNCTION-CONSISTENCY is silent on whether a "package designator" is really the right thing here, but KAB, Sandra, and KMP agree that this is what was probably intended.package—a package designator.

symbols—a list of symbols.

Description:

11.2.0 18 Sandra: Must this list be freshly consed? CreatesReturns a list of symbols that have been declared as shadowing symbols in package by shadow or shadowing-import (or the equivalent defpackage options). All symbols on this list are present in package.

Examples:

 (package-shadowing-symbols (make-package 'temp)) → ()
 (shadow 'cdr 'temp) → T
 (package-shadowing-symbols 'temp) → (TEMP::CDR)
 (intern "PILL" 'temp) → TEMP::PILL, NIL
 (shadowing-import 'pill 'temp) → T
 (package-shadowing-symbols 'temp) → (PILL TEMP::CDR)

Side Effects:

None.

Affected By:

None.

Exceptional Situations:

Should signal an error of type type-error if package is not a package designator.

See Also:

shadow, shadowing-import

Notes:

Is the list fresh every time, or can it be cached? -kmp 25-Apr-91 Sandra thinks it might be, so I added this not. -kmp 13-Feb-92Whether the list of symbols is fresh is implementation-dependent.