[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Closed Modules: a Useful Hack
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 4 Jan 2010 10:41:02 +0200
On Mon, Jan 4, 2010 at 8:03 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
> Keeping the module environment and module table separate, but in sync,
> means that you can play these convenience tricks without affecting the
> public interface of the module. (This was in fact the original
> motivation for this approach)
It's been done ;) See [1], "Module System with Public/Private Namespaces"
Still, an idea that could be very useful.
steve d.
[1] http://lua-users.org/wiki/ModuleDefinition