From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: How to silence "Unknown slot" compiler warnings? Date: Tue, 16 Feb 2016 08:51:57 -0600 Message-ID: <86mvr0iu7m.fsf@stephe-leake.org> References: <8760xpn30p.fsf@gmail.com> <86mvr1smmy.fsf@stephe-leake.org> <87ziv17bd6.fsf@gmail.com> <8760xpi5ad.fsf@ericabrahamsen.net> <871t8dase0.fsf@gmail.com> <87wpq4eo6n.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455634419 9499 80.91.229.3 (16 Feb 2016 14:53:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 14:53:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 16 15:53:29 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVh0D-0002n5-MM for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2016 15:53:21 +0100 Original-Received: from localhost ([::1]:46774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVh0C-0000MD-2K for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2016 09:53:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVh07-0000Ly-Sv for emacs-devel@gnu.org; Tue, 16 Feb 2016 09:53:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVh02-0005Xe-Qy for emacs-devel@gnu.org; Tue, 16 Feb 2016 09:53:15 -0500 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:53252) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1aVh02-0005XP-KL for emacs-devel@gnu.org; Tue, 16 Feb 2016 09:53:10 -0500 Original-Received: (qmail 30441 invoked by uid 0); 16 Feb 2016 14:53:09 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy2.mail.unifiedlayer.com with SMTP; 16 Feb 2016 14:53:09 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id K2t41s0152UdiVW012t7BN; Tue, 16 Feb 2016 07:53:09 -0700 X-Authority-Analysis: v=2.1 cv=IekUBwaa c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=HDWgMBI4gAMA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=jFJIQSaiL_oA:10 a=qbX9SruPAAAA:8 a=OllCBiKVtWm8L7-c4zUA:9 Original-Received: from [76.218.37.33] (port=56436 helo=TAKVER4) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1aVgzw-0003eS-9N for emacs-devel@gnu.org; Tue, 16 Feb 2016 07:53:04 -0700 In-Reply-To: <87wpq4eo6n.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 16 Feb 2016 22:15:44 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.18.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200035 Archived-At: Eric Abrahamsen 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