lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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