lua-users home
lua-l archive

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


> [...]. Also, Roberto mentioned this earlier in the
> thread:
> 
> > _ENV = module "libraryname"
> 
> ...so presumably every Lua module will need to be changed like this
> before it will work in 5.2. Unless of course module() will still
> change _ENV in the calling script through some trickery?

The idea is that, in "compatible mode", 'module' should use the debug
API to change the _ENV of the caller.

-- Roberto