[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emulating namespaces
From: |
LanX |
Subject: |
Re: Emulating namespaces |
Date: |
Wed, 08 Dec 2010 15:11:25 -0000 |
User-agent: |
G2/1.0 |
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...
- Re: About Emacs Modernisation Project, (continued)
- Re: About Emacs Modernisation Project, Pascal J. Bourguignon, 2010/12/08
- Re: About Emacs Modernisation Project, Xah Lee, 2010/12/08
- Re: About Emacs Modernisation Project, Helmut Eller, 2010/12/08
- Message not available
- Re: About Emacs Modernisation Project, Stefan Monnier, 2010/12/08
- Re: About Emacs Modernisation Project, LanX, 2010/12/08
- Re: About Emacs Modernisation Project, Maarten Bergvelt, 2010/12/08
- Re: About Emacs Modernisation Project, Pascal J. Bourguignon, 2010/12/08
- Message not available
- Re: Emulating namespaces, Pascal J. Bourguignon, 2010/12/08
- Re: Emulating namespaces,
LanX <=
- Re: Emulating namespaces, Pascal J. Bourguignon, 2010/12/08
- Re: About Emacs Modernisation Project, Evans Winner, 2010/12/09
- Re: About Emacs Modernisation Project, Pascal J. Bourguignon, 2010/12/08
- Re: About Emacs Modernisation Project, Evans Winner, 2010/12/09
Re: About Emacs Modernisation Project, Joseph Brenner, 2010/12/08
Re: About Emacs Modernisation Project, Jean-Baptiste Bourgoin, 2010/12/09