lua-users home
lua-l archive

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


> >> myModule, myOtherModule = require('moduleM')
> >
> > Multiple return values are not supported by require as far as I know.
> 
> Then perhaps it should? Of course, you can return a table as well.

require can't return multiple values because it caches the value
return by the module open function.