help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit a cl-struct by copy, or, slot-value for cl-structs


From: Yuan Fu
Subject: Re: Edit a cl-struct by copy, or, slot-value for cl-structs
Date: Fri, 29 Oct 2021 14:44:56 -0700


> On Oct 29, 2021, at 11:43 AM, Emanuel Berg via Users list for the GNU Emacs 
> text editor <help-gnu-emacs@gnu.org> wrote:
> 
> Yuan Fu wrote:
> 
>> (make-xxx :slot1 (xxx-slot1 obj)
>>          :slot2 (xxx-slot2 obj)
>>          :slot3 newvalue)
> 
> How do you create the initial struct?

I don’t think enforcing read-only when creating an object makes much sense ;-)

> 
>> Anyone knows how to define such a copy-with function without
>> resorting to EIEIO?
> 
> "Enforce In-order Execution of I/O" ... and a joke (?)
> <https://en.wikipedia.org/wiki/Enforce_In-order_Execution_of_I/O>

That would have been a half-decent joke, but I was actually referring to 
eieio.el, which implements parts of CLOS from Common Lisp.

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]