emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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