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: Zhu Zihao
Subject: Re: Slot accessing issues in EIEIO
Date: Fri, 08 May 2020 17:12:16 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Fri, 08 May 2020 11:48:22 +0800,
Stefan Monnier wrote:
> 
> > 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
I just give it a try ;)

Attachment: 0001-Make-pcase-pattern-eieio-respect-slot-access-related.patch
Description: Text document


reply via email to

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