emacs-devel
[Top][All Lists]
Advanced

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

Re: Slot accessing issues in EIEIO


From: Stefan Monnier
Subject: Re: Slot accessing issues in EIEIO
Date: Thu, 07 May 2020 23:48:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Maybe we can fix the eieio pattern of pcase.
>
> In this piece of code:
>
> (defclass test-class () ((slot)))
>
> (pcase (make-instance 'test-class)
>   ((eieio slot)
>    slot))
> ;; => unbound
>
> An unbound marker will be returned on the fly without running slot-unbound
> in pcase with eieio pattern. Is it reasonable?

It should likely obey the bound/unbond distinction, and call
slot-missing when applicable, yes.  Patch welcome.


        Stefan




reply via email to

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