lua-users home
lua-l archive

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


> I know this is kind of frivolous, but for "syntactic sugar" you could do
> something like this.
> 
> function import(m)
>     print(m)
>     return import
> end
> 
> import "module1" "module2" "module3"

This does not work for 5.2 modules that do set globals and only return a table.