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: Eric Abrahamsen
Subject: Re: How to silence "Unknown slot" compiler warnings?
Date: Tue, 16 Feb 2016 22:15:44 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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.

> So I am afraid dropping keywords is not an option for me. Is there a way to
> selectively force shut compiler warnings in emacs?

That I couldn't tell you.

(Don't forget to follow-up to the list.)




reply via email to

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