[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader whe
From: |
Stefan Monnier |
Subject: |
bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value |
Date: |
Sat, 25 Nov 2023 09:56:57 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
[ Sorry for the delay, and thanks Eli for re-pinging me. ]
> I've included a suggested patch for 'eieio.el', which slightly
> modifies the behavior of EIEIO's 'defclass'. When playing around with
> 'eieio-instance-inheritor' as a base class, I noticed that calls to
> the accessor (when used as a getter) weren't delegating to the parent
> instance (as defined when calling 'clone'). That is, an object clone that
> doesn't set
> its fields directly will report 'nil' when the accessor method is used as a
> getter for some slot.
The patch looks great and confirms my FIXME.
Could you turn the example in the commit message into a test in
test/lisp/emacs-lisp/eieio-tests/eieio-tests.el?
Stefan
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Brandon Irizarry, 2023/11/04
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Eli Zaretskii, 2023/11/11
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value,
Stefan Monnier <=
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Brandon Irizarry, 2023/11/25
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Stefan Monnier, 2023/11/26
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, João Távora, 2023/11/28
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Stefan Monnier, 2023/11/29
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, João Távora, 2023/11/29
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Stefan Monnier, 2023/11/29
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, João Távora, 2023/11/29
- bug#66938: 30.0.50 [PATCH]: Make EIEIO :accessor behave like :reader when reading a slot's value, Stefan Monnier, 2023/11/29
bug#66938: 30.0.50; Commit 6c47931a1ad4de ("Make EIEIO ':accessor' behave like ':reader' when reading (bug#66938)") breaks Eglot, Arsen Arsenović, 2023/11/28