From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.devel Subject: Re: The :protection option for EIEIO slots Date: Fri, 16 Jan 2015 21:56:20 -0500 Message-ID: <54B9CF54.9050508@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421463399 24057 80.91.229.3 (17 Jan 2015 02:56:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2015 02:56:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , "Eric M. Ludlam" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 17 03:56:38 2015 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 1YCJYu-0003za-ER for ged-emacs-devel@m.gmane.org; Sat, 17 Jan 2015 03:56:32 +0100 Original-Received: from localhost ([::1]:58115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCJYt-0006eq-N4 for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2015 21:56:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCJYq-0006el-L6 for emacs-devel@gnu.org; Fri, 16 Jan 2015 21:56:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCJYl-0007j9-Mo for emacs-devel@gnu.org; Fri, 16 Jan 2015 21:56:28 -0500 Original-Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:61237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCJYl-0007iq-HH; Fri, 16 Jan 2015 21:56:23 -0500 Original-Received: by mail-qg0-f52.google.com with SMTP id i50so18957769qgf.11; Fri, 16 Jan 2015 18:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=+hCA9JrZRInhaWCl6hrvQOdo93AN7i9WKB3NayMhbSc=; b=vLRRU98n9N5CT0/lOMc5OB0mhLYGgYdZTY2axV4SUtnUG+V4u3UB0a0ZhQQwJnHvDq E5uRbmFvimG9j0MtasyQF8Hb1S2TvezGhZ7oyu/88vvaqAFBYmtRKBP0bFwGHMNMN53T FC/Z3loU3G+0RO9d/2DXoLvZZ7wuXrBZwO10iBRVc6gGkQdBBIasWrSaW2GgREIjAc+k ZPdJrO3Gh3mPfuAo8mTi77GkkENy/AD+dfk0jQlOqC6k3f9iSW/JIpibPd4hDss6/7Yy FF222v+ZOg26ncqjlhrvfbrfCUoRJbBTyy1zpwZsJVxFwLra8JuiEwMl4AdRdlbH6T6K P27w== X-Received: by 10.229.48.132 with SMTP id r4mr30940872qcf.5.1421463382331; Fri, 16 Jan 2015 18:56:22 -0800 (PST) Original-Received: from [192.168.1.202] (pool-108-20-224-24.bstnma.fios.verizon.net. [108.20.224.24]) by mx.google.com with ESMTPSA id y95sm5873184qgy.14.2015.01.16.18.56.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jan 2015 18:56:21 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::234 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:181364 Archived-At: On 01/15/2015 10:00 PM, Stefan Monnier wrote: > Hi Eric, > > Can you give me some background on the :protection option for the slots > of EIEIO objects? This doesn't exist in CLOS, so I'm wondering what > were the motivations to add them. > As far as I remember, I was learning C++ at the time and using Emacs to teach myself OO concepts and thought it would be useful. I didn't hesitate much about extending CLOS. I'm surprised the protected slot doesn't work. There is a test for that throwing an error. > > So I'm tempted to just drop this functionality. Any thoughts? > No flags. I've written a lot of classes and apparently didn't use it very much, so feel free. Eric