lua-users home
lua-l archive

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


What if no syntax was changed, but every chunk got its own personal
environment instead, which library functions like require() can import
into the calling chunk's environment if desired? You could have one
function that maintains the current behavior (which would probably
remain require()), and another that simply returns the chunk's
environment.

~Jonathan