[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: Ted Zlatanov
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:34:24 -0400
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Sat, 18 Apr 2015 10:20:30 -0400 Stefan Monnier <address@hidden> wrote: 

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

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

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

That would work for me as a user, but I fear it will be pretty hard to


reply via email to

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