[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
- Edit a cl-struct by copy, or, slot-value for cl-structs, Yuan Fu, 2021/10/29
- Re: Edit a cl-struct by copy, or, slot-value for cl-structs, Emanuel Berg, 2021/10/29
- Re: Edit a cl-struct by copy, or, slot-value for cl-structs,
Yuan Fu <=
- Re: Edit a cl-struct by copy, or, slot-value for cl-structs, Stefan Monnier, 2021/10/29
- Re: Edit a cl-struct by copy, or, slot-value for cl-structs, Michael Heerdegen, 2021/10/29