lua-users home
lua-l archive

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


On Tue, Aug 16, 2005 at 05:29:05PM -0500, Javier Guerra wrote:
> On Tuesday 16 August 2005 5:27 pm, Chris Marrin wrote:
> > Does it have to be done at compile time? Couldn't the import function
> > simply iterate over all the members of math and put them in the local
> > namespace? Or is that not possible somehow?
> 
> i think locals, like fuction parameters, have no run-time names; only numbered 
> slots

... so could only use the "local global" namespace, i.e. the fenv.
module/require could set up and fill such an env,
but this would not give the speed of "local" locals
and break lots of code already dealing with setfenv.