From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: adding namespaces to emacs-lisp (better elisp?) Date: Wed, 31 Jul 2013 08:48:49 +0200 Organization: nocrew Message-ID: <85r4efxm0e.fsf@junk.nocrew.org> References: <874nbh2z3y.fsf@ferrier.me.uk> <871u6l2ral.fsf@ferrier.me.uk> <87siz116zo.fsf@ferrier.me.uk> <3b4713cb-5fd5-498b-b9ee-a676f0fef845@default> <85fvv032q3.fsf@junk.nocrew.org> <87ppu41edv.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375254642 19656 80.91.229.3 (31 Jul 2013 07:10:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 07:10:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 31 09:10:43 2013 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 1V4QYK-0005WY-SD for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2013 09:10:32 +0200 Original-Received: from localhost ([::1]:53753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4QYK-0002HN-CW for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2013 03:10:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4QY8-0002FO-P3 for emacs-devel@gnu.org; Wed, 31 Jul 2013 03:10:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4QY1-0004zr-E6 for emacs-devel@gnu.org; Wed, 31 Jul 2013 03:10:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4QDZ-0004fD-Uh for emacs-devel@gnu.org; Wed, 31 Jul 2013 02:49:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V4QDW-0000ZH-Ho for emacs-devel@gnu.org; Wed, 31 Jul 2013 08:49:02 +0200 Original-Received: from c-4957e555.012-14-67626717.cust.bredbandsbolaget.se ([85.229.87.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Jul 2013 08:49:02 +0200 Original-Received: from lars by c-4957e555.012-14-67626717.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Jul 2013 08:49:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-4957e555.012-14-67626717.cust.bredbandsbolaget.se User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:aQeoWgMeJ0sVpGPtJltIHu1E054= 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:162281 Archived-At: Pascal J. Bourguignon wrote: >> When I did my implementation of CL packages, I did consider using >> obarrays for the symbol table. But as you say, they are not quite >> suitable for that because a symbol may have to be interned in more >> than one package. Whereas an Emacs symbol may only be intered in >> one obarray. Or so I vaguely recall. > That must be another reason, because it's not the case. Right, I was vague on the details. How about this? In Common Lisp, it may be the case that one particular symbol can be found (e.g. by FIND-SYMBOL) in multiple Lisp packages. But in Emacs Lisp, a symbol can only be found (e.g. by intern-soft) in one single obarray. This made me hesitate to use obarrays to implement packages. However, it can be made to work, and may actually be the best solution.