Re: clos mop
"Tim Bradshaw (as tfb at cley dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
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