[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Packages and shadowing
- To: Moon at SCRC-TENEX
- Subject: Packages and shadowing
- From: Laura Bagnall <LAURA at MIT-MC>
- Date: Sat ,23 Jan 82 12:37:00 EDT
- Cc: BUG-lispm at SCRC-TENEX
But it DIDN'T query me when I redefined a global function. My file
redefined ARRAY-DIMENSIONS and when I loaded the file into my new
package SCHEME without shadowing it, it redefined the global function
without querying me. ARRAY-DIMENSIONS is a very low-level function and
I was not able to recover without rebooting. When I included
(shadow array-dimensions) in my PACKAGE-DECLARE the problem went away.
I am sure that the redefined function was put into the global package
because when I INSPECTED global:array-dimensions it had my file-name
listed as the source.