From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.help Subject: Re: Object identity Date: 22 Oct 2003 09:35:37 +0200 Organization: nocrew Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <85llrd912u.fsf@junk.nocrew.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066808266 11511 80.91.224.253 (22 Oct 2003 07:37:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2003 07:37:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 09:37:44 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACDYt-0003yv-00 for ; Wed, 22 Oct 2003 09:37:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACDXi-0007cH-IS for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2003 03:36:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACDXV-0007bs-RU for help-gnu-emacs@gnu.org; Wed, 22 Oct 2003 03:36:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACDWy-0007Os-IH for help-gnu-emacs@gnu.org; Wed, 22 Oct 2003 03:36:15 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACDWv-0007FP-7o for help-gnu-emacs@gnu.org; Wed, 22 Oct 2003 03:35:41 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ACDWt-0006bP-00 for ; Wed, 22 Oct 2003 09:35:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACDWs-0006bH-00 for ; Wed, 22 Oct 2003 09:35:38 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ACDWs-0002wa-00 for ; Wed, 22 Oct 2003 09:35:38 +0200 Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13452 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13452 Barry Margolin writes: > Lars Brinkhoff wrote: > >I have no desire to get the not-quite-unique identifiers in Common > >Lisp. I want to implement PRINT-UNREADABLE-OBJECT in Emacs Lisp. > I understand that. My point was that just as PRINT-UNREADABLE-OBJECT has > to be part of the implementation in CL, your requested object-identity > function would have to be part of the Emacs Lisp implementation. Well, unless real storage addresses are needed, a weak hash table could also to a way to implement object-identity, right? > I don't think there's any way to write this function in Emacs Lisp, > it needs to be a primitive in the C code that implements the Lisp > interpreter. I might try to add such a primitive in the future. Thanks to you and Stefan Monnier for your thoughtful replies. -- Lars Brinkhoff, Services for Unix, Linux, GCC, HTTP Brinkhoff Consulting http://www.brinkhoff.se/