Re: clos mop

"Paul Werkowski (as pw at snoopy dot qozzy dot com)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
I read that section and the next one that talks about exceptions. My 
brain seems unwired for such legalese. However, macrolet of slot-value 
works, at least for now, now (on LW) without complaint.

Paul

On 4/1/2025 5:42 AM, Tim Bradshaw 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

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
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.