[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: esup byte compile warnings
From: |
Stefan Monnier |
Subject: |
Re: esup byte compile warnings |
Date: |
Fri, 24 Jan 2020 16:55:06 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> There are `esup' [1] byte compile warnings I would like avoid to.
> Some of them seems trivial to me. However, I don't quite understand
> slots related warnings.
The the slots, usually it's just that code that uses EIEIO seems to
misuse a weird feature of EIEIO, so they use the initval keyword instead
of the slot name when accessing the slot. For example, often code will
do
(slot-value x :file)
where the slot's name is not `:file` but `file`, so the correct usage is
(slot-value x 'file)
This odd usage does work for historical reasons but is deprecated, hence
the warning.
Stefan