[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: User-defined record types, v2
From: |
Stefan Monnier |
Subject: |
Re: User-defined record types, v2 |
Date: |
Tue, 21 Mar 2017 07:53:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> insights. In a fresh Emacs instance, define a class with a class
> allocation slot:
>
> (require 'eieio)
> (defclass foo ()
> ((x :initarg :emu
> :initform emu
> :allocation :class
> :accessor get-foo)))
>
> Now, this will fail:
>
> (progn (get-foo (foo)) (get-foo 'foo))
>
> However, if you restart Emacs and define the class again, this will
> work:
>
> (progn (get-foo 'foo) (get-foo (foo)))
I'll take a look at it.
Stefan
- Re: User-defined record types, v2, (continued)
- Re: User-defined record types, v2, Eli Zaretskii, 2017/03/18
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/18
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/18
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/19
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/19
- Re: User-defined record types, v2, Eli Zaretskii, 2017/03/19
Re: User-defined record types, v2, Eli Zaretskii, 2017/03/18
Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/19
Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/21
- Re: User-defined record types, v2,
Stefan Monnier <=
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/22
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/23
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/23
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/23
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/23
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/24
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/24
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/24
- Re: User-defined record types, v2, Lars Brinkhoff, 2017/03/29
- Re: User-defined record types, v2, Stefan Monnier, 2017/03/30