[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Modules from the ground up
- From: Sean Conner <sean@...>
- Date: Wed, 26 Oct 2011 17:36:59 -0400
Okay, assume a pristine Lua state:
L = luaL_newstate();
What would one need to support modules in a pristine state?
Some other thoughts---even if require()/module() no longer pollute the
global namespace, you *still* need to be concerned about module names. For
instance, assume there's a "graph" Lua module that implements various graph
algorithms, and also assume there's a "graph" Lua module that implements
various ways to generate a graphic image of data (say, a bar graph, pie
chart, etc.). Suppose further I want to use "graph" module to generate
various graphs and display performance characteristics using the "graph"
module to display the results.
Without changing the code to "graph" and "graph", can it be done? Is
there a way to do such a thing?
-spc