From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: Emulating namespaces Date: Thu, 3 Jun 2010 08:33:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <143c6d28-4423-4e43-9fc5-c0fb3340043b@c11g2000vbe.googlegroups.com> <87ljazofkn.fsf@rapttech.com.au> <04eff456-349f-4840-b0f7-d1784f6b7058@d12g2000vbr.googlegroups.com> <87r5krh3e0.fsf@unm.edu> <66c5242b-d254-4646-9537-6c669c6616bb@d12g2000vbr.googlegroups.com> <87typksc0h.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291827074 19472 80.91.229.12 (8 Dec 2010 16:51:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:51:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:51:10 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQNET-0004fn-5k for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:51:09 +0100 Original-Received: from localhost ([127.0.0.1]:37994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQNES-00018k-CX for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:51:08 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!c11g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 84.59.64.74 Original-X-Trace: posting.google.com 1275579203 17709 127.0.0.1 (3 Jun 2010 15:33:23 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 3 Jun 2010 15:33:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c11g2000vbe.googlegroups.com; posting-host=84.59.64.74; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178588 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75647 Archived-At: do I get it right switching the package means that will bind variables in the following code to different symbol tables? > Also, we could just use emacs-cl... ehm do you wanna tell me that (require 'cl) already provides support for namespaces? So why bother? Could you plz show me some code that reflects the behavior of the perl snippet I posted? --------------- { package Namespace; our $var=666; sub tst {print $var } } package Outerspace; $var=42; Namespace::tst(); # prints 666 --------------- I'd like to run some tests...