[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: :tracker in eieio classes
From: |
Eric Abrahamsen |
Subject: |
Re: :tracker in eieio classes |
Date: |
Fri, 12 Feb 2016 16:47:52 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Chris Feng <address@hidden> writes:
>>> I've noticed that, while tag references to slots work, the compiler
>>> wants a symbol. I think if you just switch that to (oref db 'tracker) it
>>> should be quiet. Or (eieio-oref db 'tracker).
>>
>> Then it says
>>
>> In toplevel form:
>> gnus/registry.el:182:21:Warning: Unknown slot `(quote tracker)'
>
> It should be (oref db tracker).
Whoops, sorry for the hasty answer. I usually use eieio-oref, which
is a function and wants a symbol. `oref' is defined as a macro:
(defmacro oref (obj slot)
(declare (debug (form symbolp)))
`(eieio-oref ,obj (quote ,slot)))
I've always been a little confused about whether one thing or the other
was preferred.