From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?iso-8859-1?Q?Jo=E3o_T=E1vora?=) Newsgroups: gmane.emacs.devel Subject: Re: EIEIO Date: Fri, 14 Mar 2014 10:24:46 +0000 Message-ID: References: <53212048.70901@siege-engine.com> <5321B561.2030004@online.de> <53224F2B.3070600@siege-engine.com> <532268F2.60809@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1394792707 21303 80.91.229.3 (14 Mar 2014 10:25:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 10:25:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 14 11:25:16 2014 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 1WOPIh-0004YD-Ln for ged-emacs-devel@m.gmane.org; Fri, 14 Mar 2014 11:25:15 +0100 Original-Received: from localhost ([::1]:43833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOPIh-0007gM-7a for ged-emacs-devel@m.gmane.org; Fri, 14 Mar 2014 06:25:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOPIY-0007Qq-NM for emacs-devel@gnu.org; Fri, 14 Mar 2014 06:25:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOPIS-0004uc-Cr for emacs-devel@gnu.org; Fri, 14 Mar 2014 06:25:06 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOPIS-0004uS-6C for emacs-devel@gnu.org; Fri, 14 Mar 2014 06:25:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOPIQ-0004FE-Qq for emacs-devel@gnu.org; Fri, 14 Mar 2014 11:24:58 +0100 Original-Received: from a81-84-241-129.static.cpe.netcabo.pt ([81.84.241.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 11:24:58 +0100 Original-Received: from joaotavora by a81-84-241-129.static.cpe.netcabo.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 11:24:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: a81-84-241-129.static.cpe.netcabo.pt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) Cancel-Lock: sha1:X13J81QxAADTH0ijEcgx0FHO4w4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.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:170349 Archived-At: Daniel Colascione writes: > to use plain defstructs instead. I didn't like how EIEIO required each > object to have a name (requiring that EIEIO allocate a new string for > each object instance) I can also see how something like this would scare me off, but those would be the premature optimization voices-in-my-head speaking. Perhaps you had case where that was indeed a problem. Anyway, If I'm reading the docs and the code of `make-instance' correctly, the implicit name slot is only used for printing an object. In that case I see no reason why multiple instances of the same class can't share the same string. Joćo