[Top][All Lists]

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

Re: [Emacs-diffs] master 1fcc552: lisp/gnus/registry.el (registry-prune)

From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 1fcc552: lisp/gnus/registry.el (registry-prune): Allow registry to reach full size before pruning
Date: Sat, 18 Apr 2015 10:20:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> If initargs are to be avoided, maybe a compilation warning there would
> be appropriate?[1]

Agreed.  I haven't implemented one yet, but it's crossed my mind, yes.
The main problem is that in (oref a b), the compiler has no idea what is
the possible class(es) of `a', so it can't look up that class to see if
`b' is an initarg.

What I'm thinking of doing is keeping track of all known slot names and
all known initarg names, and if `b' is an initarg name but not a slot
name, then emit the warning.  This should work OK in practice since
initargs tend to all be keywords, where slot names tend to all be
non-keyword symbols.


reply via email to

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