[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Packaging and importing
- From: Rici Lake <lua@...>
- Date: Wed, 17 Aug 2005 10:24:02 -0500
On 17-Aug-05, at 9:27 AM, Chris Marrin wrote:
I am using the wrong term. When I say "locals" I mean properties of
the "local namespace", which is the environment being used by a
particular function. So, if I have module 'a' and I want to import
some or all of its properties into the environment of a function, I
would just copy the property references from the module to the
environment. They are both just tables, right?
You could do that, but it's not easy to see what advantages that would
give you aside from saving a few keystrokes, I suppose. The package
namespace is in effect the public interface to a package; I wouldn't
have thought that importing random names into it would be a good idea.