Re: clos mop

"Robert P. Goldman (as rpgoldman at sift dot net)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
UIOP’s define-package makes this easy to do, since it provides options like :reexport.
 You probably have this available already, if you use ASDF to do your system definitions.
On Apr 1, 2025 at 04:42:21 CDT, Tim Bradshaw (as tfb at cley dot com) <[email protected]> wrote:
 

On 31 Mar 2025, at 18:24, Paul Werkowski (as pw at snoopy dot qozzy dot com) <[email protected]> wrote:
 
  
SBCL was very unhappy with me messing with shadowing its slot-value warning loudly about violating PACKAGE-LOCK protocols. 

That was correct.  You're not allowed to do that, see  https://www.lispworks.com/documentation/HyperSpec/Body/11_abab.htm .  Given LW does special magic for slot-value that might not work for LW either.  It'a the same as, say, locally binding car as a function.

If you want a system which is like CL but slot-value has different behaviour, then the answer is a conduit: a package which reexports all the symbols in CL, except slot-value, and provides its own version of that.  Someone once wrote a variant defpackage to make defining conduits easy...

(Please, no-one suggest shadow / shadowing-import.  Just ... don't).

--tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.