emacs-devel
[Top][All Lists]
Advanced

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

Re: How to silence "Unknown slot" compiler warnings?


From: Stephen Leake
Subject: Re: How to silence "Unknown slot" compiler warnings?
Date: Tue, 16 Feb 2016 08:51:57 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Eric Abrahamsen <address@hidden> writes:

> On 02/16/16 10:58 AM, Vitalie Spinu wrote:
>>>> On Tue, Feb 16 2016 13:38, Eric Abrahamsen wrote:
>>
>>> You're using oref/oset with arguments as :tags, but the slot name should 
>>> just
>>> be a non-quoted, non-tag macro argument.
>>
>> What is this restriction for?
>>
>> That's the whole point of :initarg AFAIC. I need to use keywords to enhance
>> readability of the code. There quite a few slots in my package and I want to
>> distinguish then from local and global vars.
>
> Initargs are still tags and only tags. But slot reference is only a
> "naked" slot name (with oref/oset), or else a quoted symbol (with
> eieio-{oref,oset}, or slot-value and set-slot-value). oref and oset are
> just thin wrappers around the eieio-* versions.
>
> I can't say why! I'm also a little uncomfortable about the "naked"
> versions, and for the same reason -- my brain keeps seeing them as
> variables.

More importantly, it's a change from Emacs 24, that breaks a lot of
existing code.

Does this change make eieio consistent with some standard?

-- 
-- Stephe



reply via email to

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